Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIProtocolProxyCallback.idl
3 : */
4 :
5 : #ifndef __gen_nsIProtocolProxyCallback_h__
6 : #define __gen_nsIProtocolProxyCallback_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.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 : class nsIChannel; /* forward declaration */
18 :
19 : class nsIProxyInfo; /* forward declaration */
20 :
21 : class nsICancelable; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIProtocolProxyCallback */
25 : #define NS_IPROTOCOLPROXYCALLBACK_IID_STR "fbb6eff6-0cc2-4d99-8d6f-0a12b462bdeb"
26 :
27 : #define NS_IPROTOCOLPROXYCALLBACK_IID \
28 : {0xfbb6eff6, 0x0cc2, 0x4d99, \
29 : { 0x8d, 0x6f, 0x0a, 0x12, 0xb4, 0x62, 0xbd, 0xeb }}
30 :
31 7 : class NS_NO_VTABLE nsIProtocolProxyCallback : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROTOCOLPROXYCALLBACK_IID)
35 :
36 : /* void onProxyAvailable (in nsICancelable aRequest, in nsIChannel aChannel, in nsIProxyInfo aProxyInfo, in nsresult aStatus); */
37 : NS_IMETHOD OnProxyAvailable(nsICancelable *aRequest, nsIChannel *aChannel, nsIProxyInfo *aProxyInfo, nsresult aStatus) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProtocolProxyCallback, NS_IPROTOCOLPROXYCALLBACK_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSIPROTOCOLPROXYCALLBACK \
45 : NS_IMETHOD OnProxyAvailable(nsICancelable *aRequest, nsIChannel *aChannel, nsIProxyInfo *aProxyInfo, nsresult aStatus) override;
46 :
47 : /* Use this macro when declaring the members of this interface when the
48 : class doesn't implement the interface. This is useful for forwarding. */
49 : #define NS_DECL_NON_VIRTUAL_NSIPROTOCOLPROXYCALLBACK \
50 : nsresult OnProxyAvailable(nsICancelable *aRequest, nsIChannel *aChannel, nsIProxyInfo *aProxyInfo, nsresult aStatus);
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
53 : #define NS_FORWARD_NSIPROTOCOLPROXYCALLBACK(_to) \
54 : NS_IMETHOD OnProxyAvailable(nsICancelable *aRequest, nsIChannel *aChannel, nsIProxyInfo *aProxyInfo, nsresult aStatus) override { return _to OnProxyAvailable(aRequest, aChannel, aProxyInfo, aStatus); }
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_NSIPROTOCOLPROXYCALLBACK(_to) \
58 : NS_IMETHOD OnProxyAvailable(nsICancelable *aRequest, nsIChannel *aChannel, nsIProxyInfo *aProxyInfo, nsresult aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnProxyAvailable(aRequest, aChannel, aProxyInfo, aStatus); }
59 :
60 : #if 0
61 : /* Use the code below as a template for the implementation class for this interface. */
62 :
63 : /* Header file */
64 : class nsProtocolProxyCallback : public nsIProtocolProxyCallback
65 : {
66 : public:
67 : NS_DECL_ISUPPORTS
68 : NS_DECL_NSIPROTOCOLPROXYCALLBACK
69 :
70 : nsProtocolProxyCallback();
71 :
72 : private:
73 : ~nsProtocolProxyCallback();
74 :
75 : protected:
76 : /* additional members */
77 : };
78 :
79 : /* Implementation file */
80 : NS_IMPL_ISUPPORTS(nsProtocolProxyCallback, nsIProtocolProxyCallback)
81 :
82 : nsProtocolProxyCallback::nsProtocolProxyCallback()
83 : {
84 : /* member initializers and constructor code */
85 : }
86 :
87 : nsProtocolProxyCallback::~nsProtocolProxyCallback()
88 : {
89 : /* destructor code */
90 : }
91 :
92 : /* void onProxyAvailable (in nsICancelable aRequest, in nsIChannel aChannel, in nsIProxyInfo aProxyInfo, in nsresult aStatus); */
93 : NS_IMETHODIMP nsProtocolProxyCallback::OnProxyAvailable(nsICancelable *aRequest, nsIChannel *aChannel, nsIProxyInfo *aProxyInfo, nsresult aStatus)
94 : {
95 : return NS_ERROR_NOT_IMPLEMENTED;
96 : }
97 :
98 : /* End of implementation class template. */
99 : #endif
100 :
101 :
102 : #endif /* __gen_nsIProtocolProxyCallback_h__ */
|