Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIUrlClassifierStreamUpdater.idl
3 : */
4 :
5 : #ifndef __gen_nsIUrlClassifierStreamUpdater_h__
6 : #define __gen_nsIUrlClassifierStreamUpdater_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIUrlClassifierDBService_h__
14 : #include "nsIUrlClassifierDBService.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 :
22 : /* starting interface: nsIUrlClassifierStreamUpdater */
23 : #define NS_IURLCLASSIFIERSTREAMUPDATER_IID_STR "e1797597-f4d6-4dd3-a1e1-745ad352cd80"
24 :
25 : #define NS_IURLCLASSIFIERSTREAMUPDATER_IID \
26 : {0xe1797597, 0xf4d6, 0x4dd3, \
27 : { 0xa1, 0xe1, 0x74, 0x5a, 0xd3, 0x52, 0xcd, 0x80 }}
28 :
29 1 : class NS_NO_VTABLE nsIUrlClassifierStreamUpdater : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLCLASSIFIERSTREAMUPDATER_IID)
33 :
34 : /* boolean downloadUpdates (in ACString aRequestTables, in ACString aRequestPayload, in boolean aIsPostRequest, in ACString aUpdateUrl, in nsIUrlClassifierCallback aSuccessCallback, in nsIUrlClassifierCallback aUpdateErrorCallback, in nsIUrlClassifierCallback aDownloadErrorCallback); */
35 : NS_IMETHOD DownloadUpdates(const nsACString & aRequestTables, const nsACString & aRequestPayload, bool aIsPostRequest, const nsACString & aUpdateUrl, nsIUrlClassifierCallback *aSuccessCallback, nsIUrlClassifierCallback *aUpdateErrorCallback, nsIUrlClassifierCallback *aDownloadErrorCallback, bool *_retval) = 0;
36 :
37 : };
38 :
39 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIUrlClassifierStreamUpdater, NS_IURLCLASSIFIERSTREAMUPDATER_IID)
40 :
41 : /* Use this macro when declaring classes that implement this interface. */
42 : #define NS_DECL_NSIURLCLASSIFIERSTREAMUPDATER \
43 : NS_IMETHOD DownloadUpdates(const nsACString & aRequestTables, const nsACString & aRequestPayload, bool aIsPostRequest, const nsACString & aUpdateUrl, nsIUrlClassifierCallback *aSuccessCallback, nsIUrlClassifierCallback *aUpdateErrorCallback, nsIUrlClassifierCallback *aDownloadErrorCallback, bool *_retval) override;
44 :
45 : /* Use this macro when declaring the members of this interface when the
46 : class doesn't implement the interface. This is useful for forwarding. */
47 : #define NS_DECL_NON_VIRTUAL_NSIURLCLASSIFIERSTREAMUPDATER \
48 : nsresult DownloadUpdates(const nsACString & aRequestTables, const nsACString & aRequestPayload, bool aIsPostRequest, const nsACString & aUpdateUrl, nsIUrlClassifierCallback *aSuccessCallback, nsIUrlClassifierCallback *aUpdateErrorCallback, nsIUrlClassifierCallback *aDownloadErrorCallback, bool *_retval);
49 :
50 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
51 : #define NS_FORWARD_NSIURLCLASSIFIERSTREAMUPDATER(_to) \
52 : NS_IMETHOD DownloadUpdates(const nsACString & aRequestTables, const nsACString & aRequestPayload, bool aIsPostRequest, const nsACString & aUpdateUrl, nsIUrlClassifierCallback *aSuccessCallback, nsIUrlClassifierCallback *aUpdateErrorCallback, nsIUrlClassifierCallback *aDownloadErrorCallback, bool *_retval) override { return _to DownloadUpdates(aRequestTables, aRequestPayload, aIsPostRequest, aUpdateUrl, aSuccessCallback, aUpdateErrorCallback, aDownloadErrorCallback, _retval); }
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
55 : #define NS_FORWARD_SAFE_NSIURLCLASSIFIERSTREAMUPDATER(_to) \
56 : NS_IMETHOD DownloadUpdates(const nsACString & aRequestTables, const nsACString & aRequestPayload, bool aIsPostRequest, const nsACString & aUpdateUrl, nsIUrlClassifierCallback *aSuccessCallback, nsIUrlClassifierCallback *aUpdateErrorCallback, nsIUrlClassifierCallback *aDownloadErrorCallback, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DownloadUpdates(aRequestTables, aRequestPayload, aIsPostRequest, aUpdateUrl, aSuccessCallback, aUpdateErrorCallback, aDownloadErrorCallback, _retval); }
57 :
58 : #if 0
59 : /* Use the code below as a template for the implementation class for this interface. */
60 :
61 : /* Header file */
62 : class nsUrlClassifierStreamUpdater : public nsIUrlClassifierStreamUpdater
63 : {
64 : public:
65 : NS_DECL_ISUPPORTS
66 : NS_DECL_NSIURLCLASSIFIERSTREAMUPDATER
67 :
68 : nsUrlClassifierStreamUpdater();
69 :
70 : private:
71 : ~nsUrlClassifierStreamUpdater();
72 :
73 : protected:
74 : /* additional members */
75 : };
76 :
77 : /* Implementation file */
78 : NS_IMPL_ISUPPORTS(nsUrlClassifierStreamUpdater, nsIUrlClassifierStreamUpdater)
79 :
80 : nsUrlClassifierStreamUpdater::nsUrlClassifierStreamUpdater()
81 : {
82 : /* member initializers and constructor code */
83 : }
84 :
85 : nsUrlClassifierStreamUpdater::~nsUrlClassifierStreamUpdater()
86 : {
87 : /* destructor code */
88 : }
89 :
90 : /* boolean downloadUpdates (in ACString aRequestTables, in ACString aRequestPayload, in boolean aIsPostRequest, in ACString aUpdateUrl, in nsIUrlClassifierCallback aSuccessCallback, in nsIUrlClassifierCallback aUpdateErrorCallback, in nsIUrlClassifierCallback aDownloadErrorCallback); */
91 : NS_IMETHODIMP nsUrlClassifierStreamUpdater::DownloadUpdates(const nsACString & aRequestTables, const nsACString & aRequestPayload, bool aIsPostRequest, const nsACString & aUpdateUrl, nsIUrlClassifierCallback *aSuccessCallback, nsIUrlClassifierCallback *aUpdateErrorCallback, nsIUrlClassifierCallback *aDownloadErrorCallback, bool *_retval)
92 : {
93 : return NS_ERROR_NOT_IMPLEMENTED;
94 : }
95 :
96 : /* End of implementation class template. */
97 : #endif
98 :
99 :
100 : #endif /* __gen_nsIUrlClassifierStreamUpdater_h__ */
|