1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/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 nsIURI; /* 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 "a9967200-f95e-45c2-beb3-9b060d874bfd"
26 :
27 : #define NS_IPROTOCOLPROXYCALLBACK_IID \
28 : {0xa9967200, 0xf95e, 0x45c2, \
29 : { 0xbe, 0xb3, 0x9b, 0x06, 0x0d, 0x87, 0x4b, 0xfd }}
30 :
31 3514 : class NS_NO_VTABLE NS_SCRIPTABLE nsIProtocolProxyCallback : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROTOCOLPROXYCALLBACK_IID)
35 :
36 : /* void onProxyAvailable (in nsICancelable aRequest, in nsIURI aURI, in nsIProxyInfo aProxyInfo, in nsresult aStatus); */
37 : NS_SCRIPTABLE NS_IMETHOD OnProxyAvailable(nsICancelable *aRequest, nsIURI *aURI, 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_SCRIPTABLE NS_IMETHOD OnProxyAvailable(nsICancelable *aRequest, nsIURI *aURI, nsIProxyInfo *aProxyInfo, nsresult aStatus);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_NSIPROTOCOLPROXYCALLBACK(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD OnProxyAvailable(nsICancelable *aRequest, nsIURI *aURI, nsIProxyInfo *aProxyInfo, nsresult aStatus) { return _to OnProxyAvailable(aRequest, aURI, aProxyInfo, aStatus); }
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
52 : #define NS_FORWARD_SAFE_NSIPROTOCOLPROXYCALLBACK(_to) \
53 : NS_SCRIPTABLE NS_IMETHOD OnProxyAvailable(nsICancelable *aRequest, nsIURI *aURI, nsIProxyInfo *aProxyInfo, nsresult aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnProxyAvailable(aRequest, aURI, aProxyInfo, aStatus); }
54 :
55 : #if 0
56 : /* Use the code below as a template for the implementation class for this interface. */
57 :
58 : /* Header file */
59 : class nsProtocolProxyCallback : public nsIProtocolProxyCallback
60 : {
61 : public:
62 : NS_DECL_ISUPPORTS
63 : NS_DECL_NSIPROTOCOLPROXYCALLBACK
64 :
65 : nsProtocolProxyCallback();
66 :
67 : private:
68 : ~nsProtocolProxyCallback();
69 :
70 : protected:
71 : /* additional members */
72 : };
73 :
74 : /* Implementation file */
75 : NS_IMPL_ISUPPORTS1(nsProtocolProxyCallback, nsIProtocolProxyCallback)
76 :
77 : nsProtocolProxyCallback::nsProtocolProxyCallback()
78 : {
79 : /* member initializers and constructor code */
80 : }
81 :
82 : nsProtocolProxyCallback::~nsProtocolProxyCallback()
83 : {
84 : /* destructor code */
85 : }
86 :
87 : /* void onProxyAvailable (in nsICancelable aRequest, in nsIURI aURI, in nsIProxyInfo aProxyInfo, in nsresult aStatus); */
88 : NS_IMETHODIMP nsProtocolProxyCallback::OnProxyAvailable(nsICancelable *aRequest, nsIURI *aURI, nsIProxyInfo *aProxyInfo, nsresult aStatus)
89 : {
90 : return NS_ERROR_NOT_IMPLEMENTED;
91 : }
92 :
93 : /* End of implementation class template. */
94 : #endif
95 :
96 :
97 : #endif /* __gen_nsIProtocolProxyCallback_h__ */
|