Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIProtocolProxyService2.idl
3 : */
4 :
5 : #ifndef __gen_nsIProtocolProxyService2_h__
6 : #define __gen_nsIProtocolProxyService2_h__
7 :
8 :
9 : #ifndef __gen_nsIProtocolProxyService_h__
10 : #include "nsIProtocolProxyService.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 :
18 : /* starting interface: nsIProtocolProxyService2 */
19 : #define NS_IPROTOCOLPROXYSERVICE2_IID_STR "b2e5b2c0-e21e-4845-b336-be6d60a38951"
20 :
21 : #define NS_IPROTOCOLPROXYSERVICE2_IID \
22 : {0xb2e5b2c0, 0xe21e, 0x4845, \
23 : { 0xb3, 0x36, 0xbe, 0x6d, 0x60, 0xa3, 0x89, 0x51 }}
24 :
25 1 : class NS_NO_VTABLE nsIProtocolProxyService2 : public nsIProtocolProxyService {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROTOCOLPROXYSERVICE2_IID)
29 :
30 : /* void reloadPAC (); */
31 : NS_IMETHOD ReloadPAC(void) = 0;
32 :
33 : /* nsICancelable asyncResolve2 (in nsIChannel aChannel, in unsigned long aFlags, in nsIProtocolProxyCallback aCallback, [optional] in nsIEventTarget aMainThreadTarget); */
34 : NS_IMETHOD AsyncResolve2(nsIChannel *aChannel, uint32_t aFlags, nsIProtocolProxyCallback *aCallback, nsIEventTarget *aMainThreadTarget, nsICancelable * *_retval) = 0;
35 :
36 : };
37 :
38 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProtocolProxyService2, NS_IPROTOCOLPROXYSERVICE2_IID)
39 :
40 : /* Use this macro when declaring classes that implement this interface. */
41 : #define NS_DECL_NSIPROTOCOLPROXYSERVICE2 \
42 : NS_IMETHOD ReloadPAC(void) override; \
43 : NS_IMETHOD AsyncResolve2(nsIChannel *aChannel, uint32_t aFlags, nsIProtocolProxyCallback *aCallback, nsIEventTarget *aMainThreadTarget, nsICancelable * *_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_NSIPROTOCOLPROXYSERVICE2 \
48 : nsresult ReloadPAC(void); \
49 : nsresult AsyncResolve2(nsIChannel *aChannel, uint32_t aFlags, nsIProtocolProxyCallback *aCallback, nsIEventTarget *aMainThreadTarget, nsICancelable * *_retval);
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
52 : #define NS_FORWARD_NSIPROTOCOLPROXYSERVICE2(_to) \
53 : NS_IMETHOD ReloadPAC(void) override { return _to ReloadPAC(); } \
54 : NS_IMETHOD AsyncResolve2(nsIChannel *aChannel, uint32_t aFlags, nsIProtocolProxyCallback *aCallback, nsIEventTarget *aMainThreadTarget, nsICancelable * *_retval) override { return _to AsyncResolve2(aChannel, aFlags, aCallback, aMainThreadTarget, _retval); }
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
57 : #define NS_FORWARD_SAFE_NSIPROTOCOLPROXYSERVICE2(_to) \
58 : NS_IMETHOD ReloadPAC(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReloadPAC(); } \
59 : NS_IMETHOD AsyncResolve2(nsIChannel *aChannel, uint32_t aFlags, nsIProtocolProxyCallback *aCallback, nsIEventTarget *aMainThreadTarget, nsICancelable * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncResolve2(aChannel, aFlags, aCallback, aMainThreadTarget, _retval); }
60 :
61 : #if 0
62 : /* Use the code below as a template for the implementation class for this interface. */
63 :
64 : /* Header file */
65 : class nsProtocolProxyService2 : public nsIProtocolProxyService2
66 : {
67 : public:
68 : NS_DECL_ISUPPORTS
69 : NS_DECL_NSIPROTOCOLPROXYSERVICE2
70 :
71 : nsProtocolProxyService2();
72 :
73 : private:
74 : ~nsProtocolProxyService2();
75 :
76 : protected:
77 : /* additional members */
78 : };
79 :
80 : /* Implementation file */
81 : NS_IMPL_ISUPPORTS(nsProtocolProxyService2, nsIProtocolProxyService2)
82 :
83 : nsProtocolProxyService2::nsProtocolProxyService2()
84 : {
85 : /* member initializers and constructor code */
86 : }
87 :
88 : nsProtocolProxyService2::~nsProtocolProxyService2()
89 : {
90 : /* destructor code */
91 : }
92 :
93 : /* void reloadPAC (); */
94 : NS_IMETHODIMP nsProtocolProxyService2::ReloadPAC()
95 : {
96 : return NS_ERROR_NOT_IMPLEMENTED;
97 : }
98 :
99 : /* nsICancelable asyncResolve2 (in nsIChannel aChannel, in unsigned long aFlags, in nsIProtocolProxyCallback aCallback, [optional] in nsIEventTarget aMainThreadTarget); */
100 : NS_IMETHODIMP nsProtocolProxyService2::AsyncResolve2(nsIChannel *aChannel, uint32_t aFlags, nsIProtocolProxyCallback *aCallback, nsIEventTarget *aMainThreadTarget, nsICancelable * *_retval)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* End of implementation class template. */
106 : #endif
107 :
108 :
109 : #endif /* __gen_nsIProtocolProxyService2_h__ */
|