1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/protocol/http/nsIHttpChannelAuthProvider.idl
3 : */
4 :
5 : #ifndef __gen_nsIHttpChannelAuthProvider_h__
6 : #define __gen_nsIHttpChannelAuthProvider_h__
7 :
8 :
9 : #ifndef __gen_nsICancelable_h__
10 : #include "nsICancelable.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 nsIHttpChannel; /* forward declaration */
18 :
19 : class nsIHttpAuthenticableChannel; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIHttpChannelAuthProvider */
23 : #define NS_IHTTPCHANNELAUTHPROVIDER_IID_STR "c68f3def-c7c8-4ee8-861c-eef49a48b702"
24 :
25 : #define NS_IHTTPCHANNELAUTHPROVIDER_IID \
26 : {0xc68f3def, 0xc7c8, 0x4ee8, \
27 : { 0x86, 0x1c, 0xee, 0xf4, 0x9a, 0x48, 0xb7, 0x02 }}
28 :
29 3514 : class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpChannelAuthProvider : public nsICancelable {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPCHANNELAUTHPROVIDER_IID)
33 :
34 : /* void init (in nsIHttpAuthenticableChannel channel); */
35 : NS_SCRIPTABLE NS_IMETHOD Init(nsIHttpAuthenticableChannel *channel) = 0;
36 :
37 : /* void processAuthentication (in unsigned long httpStatus, in boolean sslConnectFailed); */
38 : NS_SCRIPTABLE NS_IMETHOD ProcessAuthentication(PRUint32 httpStatus, bool sslConnectFailed) = 0;
39 :
40 : /* void addAuthorizationHeaders (); */
41 : NS_SCRIPTABLE NS_IMETHOD AddAuthorizationHeaders(void) = 0;
42 :
43 : /* void checkForSuperfluousAuth (); */
44 : NS_SCRIPTABLE NS_IMETHOD CheckForSuperfluousAuth(void) = 0;
45 :
46 : /* void disconnect (in nsresult status); */
47 : NS_SCRIPTABLE NS_IMETHOD Disconnect(nsresult status) = 0;
48 :
49 : };
50 :
51 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpChannelAuthProvider, NS_IHTTPCHANNELAUTHPROVIDER_IID)
52 :
53 : /* Use this macro when declaring classes that implement this interface. */
54 : #define NS_DECL_NSIHTTPCHANNELAUTHPROVIDER \
55 : NS_SCRIPTABLE NS_IMETHOD Init(nsIHttpAuthenticableChannel *channel); \
56 : NS_SCRIPTABLE NS_IMETHOD ProcessAuthentication(PRUint32 httpStatus, bool sslConnectFailed); \
57 : NS_SCRIPTABLE NS_IMETHOD AddAuthorizationHeaders(void); \
58 : NS_SCRIPTABLE NS_IMETHOD CheckForSuperfluousAuth(void); \
59 : NS_SCRIPTABLE NS_IMETHOD Disconnect(nsresult status);
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
62 : #define NS_FORWARD_NSIHTTPCHANNELAUTHPROVIDER(_to) \
63 : NS_SCRIPTABLE NS_IMETHOD Init(nsIHttpAuthenticableChannel *channel) { return _to Init(channel); } \
64 : NS_SCRIPTABLE NS_IMETHOD ProcessAuthentication(PRUint32 httpStatus, bool sslConnectFailed) { return _to ProcessAuthentication(httpStatus, sslConnectFailed); } \
65 : NS_SCRIPTABLE NS_IMETHOD AddAuthorizationHeaders(void) { return _to AddAuthorizationHeaders(); } \
66 : NS_SCRIPTABLE NS_IMETHOD CheckForSuperfluousAuth(void) { return _to CheckForSuperfluousAuth(); } \
67 : NS_SCRIPTABLE NS_IMETHOD Disconnect(nsresult status) { return _to Disconnect(status); }
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
70 : #define NS_FORWARD_SAFE_NSIHTTPCHANNELAUTHPROVIDER(_to) \
71 : NS_SCRIPTABLE NS_IMETHOD Init(nsIHttpAuthenticableChannel *channel) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(channel); } \
72 : NS_SCRIPTABLE NS_IMETHOD ProcessAuthentication(PRUint32 httpStatus, bool sslConnectFailed) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessAuthentication(httpStatus, sslConnectFailed); } \
73 : NS_SCRIPTABLE NS_IMETHOD AddAuthorizationHeaders(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddAuthorizationHeaders(); } \
74 : NS_SCRIPTABLE NS_IMETHOD CheckForSuperfluousAuth(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckForSuperfluousAuth(); } \
75 : NS_SCRIPTABLE NS_IMETHOD Disconnect(nsresult status) { return !_to ? NS_ERROR_NULL_POINTER : _to->Disconnect(status); }
76 :
77 : #if 0
78 : /* Use the code below as a template for the implementation class for this interface. */
79 :
80 : /* Header file */
81 : class nsHttpChannelAuthProvider : public nsIHttpChannelAuthProvider
82 : {
83 : public:
84 : NS_DECL_ISUPPORTS
85 : NS_DECL_NSIHTTPCHANNELAUTHPROVIDER
86 :
87 : nsHttpChannelAuthProvider();
88 :
89 : private:
90 : ~nsHttpChannelAuthProvider();
91 :
92 : protected:
93 : /* additional members */
94 : };
95 :
96 : /* Implementation file */
97 : NS_IMPL_ISUPPORTS1(nsHttpChannelAuthProvider, nsIHttpChannelAuthProvider)
98 :
99 : nsHttpChannelAuthProvider::nsHttpChannelAuthProvider()
100 : {
101 : /* member initializers and constructor code */
102 : }
103 :
104 : nsHttpChannelAuthProvider::~nsHttpChannelAuthProvider()
105 : {
106 : /* destructor code */
107 : }
108 :
109 : /* void init (in nsIHttpAuthenticableChannel channel); */
110 : NS_IMETHODIMP nsHttpChannelAuthProvider::Init(nsIHttpAuthenticableChannel *channel)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* void processAuthentication (in unsigned long httpStatus, in boolean sslConnectFailed); */
116 : NS_IMETHODIMP nsHttpChannelAuthProvider::ProcessAuthentication(PRUint32 httpStatus, bool sslConnectFailed)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* void addAuthorizationHeaders (); */
122 : NS_IMETHODIMP nsHttpChannelAuthProvider::AddAuthorizationHeaders()
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* void checkForSuperfluousAuth (); */
128 : NS_IMETHODIMP nsHttpChannelAuthProvider::CheckForSuperfluousAuth()
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* void disconnect (in nsresult status); */
134 : NS_IMETHODIMP nsHttpChannelAuthProvider::Disconnect(nsresult status)
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 :
139 : /* End of implementation class template. */
140 : #endif
141 :
142 :
143 : #endif /* __gen_nsIHttpChannelAuthProvider_h__ */
|