1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/protocol/http/nsIHttpAuthenticableChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIHttpAuthenticableChannel_h__
6 : #define __gen_nsIHttpAuthenticableChannel_h__
7 :
8 :
9 : #ifndef __gen_nsIProxiedChannel_h__
10 : #include "nsIProxiedChannel.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIChannel_h__
14 : #include "nsIChannel.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 : class nsILoadGroup; /* forward declaration */
22 :
23 : class nsIURI; /* forward declaration */
24 :
25 : class nsIInterfaceRequestor; /* forward declaration */
26 :
27 :
28 : /* starting interface: nsIHttpAuthenticableChannel */
29 : #define NS_IHTTPAUTHENTICABLECHANNEL_IID_STR "701093ac-5c7f-429c-99e3-423b041fccb4"
30 :
31 : #define NS_IHTTPAUTHENTICABLECHANNEL_IID \
32 : {0x701093ac, 0x5c7f, 0x429c, \
33 : { 0x99, 0xe3, 0x42, 0x3b, 0x04, 0x1f, 0xcc, 0xb4 }}
34 :
35 3514 : class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpAuthenticableChannel : public nsIProxiedChannel {
36 : public:
37 :
38 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPAUTHENTICABLECHANNEL_IID)
39 :
40 : /* readonly attribute boolean isSSL; */
41 : NS_SCRIPTABLE NS_IMETHOD GetIsSSL(bool *aIsSSL) = 0;
42 :
43 : /* readonly attribute boolean proxyMethodIsConnect; */
44 : NS_SCRIPTABLE NS_IMETHOD GetProxyMethodIsConnect(bool *aProxyMethodIsConnect) = 0;
45 :
46 : /* void cancel (in nsresult aStatus); */
47 : NS_SCRIPTABLE NS_IMETHOD Cancel(nsresult aStatus) = 0;
48 :
49 : /* readonly attribute nsLoadFlags loadFlags; */
50 : NS_SCRIPTABLE NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) = 0;
51 :
52 : /* readonly attribute nsIURI URI; */
53 : NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
54 :
55 : /* readonly attribute nsILoadGroup loadGroup; */
56 : NS_SCRIPTABLE NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) = 0;
57 :
58 : /* readonly attribute nsIInterfaceRequestor notificationCallbacks; */
59 : NS_SCRIPTABLE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) = 0;
60 :
61 : /* readonly attribute ACString requestMethod; */
62 : NS_SCRIPTABLE NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) = 0;
63 :
64 : /* readonly attribute ACString serverResponseHeader; */
65 : NS_SCRIPTABLE NS_IMETHOD GetServerResponseHeader(nsACString & aServerResponseHeader) = 0;
66 :
67 : /* readonly attribute ACString proxyChallenges; */
68 : NS_SCRIPTABLE NS_IMETHOD GetProxyChallenges(nsACString & aProxyChallenges) = 0;
69 :
70 : /* readonly attribute ACString WWWChallenges; */
71 : NS_SCRIPTABLE NS_IMETHOD GetWWWChallenges(nsACString & aWWWChallenges) = 0;
72 :
73 : /* void setProxyCredentials (in ACString credentials); */
74 : NS_SCRIPTABLE NS_IMETHOD SetProxyCredentials(const nsACString & credentials) = 0;
75 :
76 : /* void setWWWCredentials (in ACString credentials); */
77 : NS_SCRIPTABLE NS_IMETHOD SetWWWCredentials(const nsACString & credentials) = 0;
78 :
79 : /* void onAuthAvailable (); */
80 : NS_SCRIPTABLE NS_IMETHOD OnAuthAvailable(void) = 0;
81 :
82 : /* void onAuthCancelled (in boolean userCancel); */
83 : NS_SCRIPTABLE NS_IMETHOD OnAuthCancelled(bool userCancel) = 0;
84 :
85 : };
86 :
87 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpAuthenticableChannel, NS_IHTTPAUTHENTICABLECHANNEL_IID)
88 :
89 : /* Use this macro when declaring classes that implement this interface. */
90 : #define NS_DECL_NSIHTTPAUTHENTICABLECHANNEL \
91 : NS_SCRIPTABLE NS_IMETHOD GetIsSSL(bool *aIsSSL); \
92 : NS_SCRIPTABLE NS_IMETHOD GetProxyMethodIsConnect(bool *aProxyMethodIsConnect); \
93 : NS_SCRIPTABLE NS_IMETHOD Cancel(nsresult aStatus); \
94 : NS_SCRIPTABLE NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags); \
95 : NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI); \
96 : NS_SCRIPTABLE NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup); \
97 : NS_SCRIPTABLE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks); \
98 : NS_SCRIPTABLE NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod); \
99 : NS_SCRIPTABLE NS_IMETHOD GetServerResponseHeader(nsACString & aServerResponseHeader); \
100 : NS_SCRIPTABLE NS_IMETHOD GetProxyChallenges(nsACString & aProxyChallenges); \
101 : NS_SCRIPTABLE NS_IMETHOD GetWWWChallenges(nsACString & aWWWChallenges); \
102 : NS_SCRIPTABLE NS_IMETHOD SetProxyCredentials(const nsACString & credentials); \
103 : NS_SCRIPTABLE NS_IMETHOD SetWWWCredentials(const nsACString & credentials); \
104 : NS_SCRIPTABLE NS_IMETHOD OnAuthAvailable(void); \
105 : NS_SCRIPTABLE NS_IMETHOD OnAuthCancelled(bool userCancel);
106 :
107 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
108 : #define NS_FORWARD_NSIHTTPAUTHENTICABLECHANNEL(_to) \
109 : NS_SCRIPTABLE NS_IMETHOD GetIsSSL(bool *aIsSSL) { return _to GetIsSSL(aIsSSL); } \
110 : NS_SCRIPTABLE NS_IMETHOD GetProxyMethodIsConnect(bool *aProxyMethodIsConnect) { return _to GetProxyMethodIsConnect(aProxyMethodIsConnect); } \
111 : NS_SCRIPTABLE NS_IMETHOD Cancel(nsresult aStatus) { return _to Cancel(aStatus); } \
112 : NS_SCRIPTABLE NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) { return _to GetLoadFlags(aLoadFlags); } \
113 : NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) { return _to GetURI(aURI); } \
114 : NS_SCRIPTABLE NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) { return _to GetLoadGroup(aLoadGroup); } \
115 : NS_SCRIPTABLE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) { return _to GetNotificationCallbacks(aNotificationCallbacks); } \
116 : NS_SCRIPTABLE NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) { return _to GetRequestMethod(aRequestMethod); } \
117 : NS_SCRIPTABLE NS_IMETHOD GetServerResponseHeader(nsACString & aServerResponseHeader) { return _to GetServerResponseHeader(aServerResponseHeader); } \
118 : NS_SCRIPTABLE NS_IMETHOD GetProxyChallenges(nsACString & aProxyChallenges) { return _to GetProxyChallenges(aProxyChallenges); } \
119 : NS_SCRIPTABLE NS_IMETHOD GetWWWChallenges(nsACString & aWWWChallenges) { return _to GetWWWChallenges(aWWWChallenges); } \
120 : NS_SCRIPTABLE NS_IMETHOD SetProxyCredentials(const nsACString & credentials) { return _to SetProxyCredentials(credentials); } \
121 : NS_SCRIPTABLE NS_IMETHOD SetWWWCredentials(const nsACString & credentials) { return _to SetWWWCredentials(credentials); } \
122 : NS_SCRIPTABLE NS_IMETHOD OnAuthAvailable(void) { return _to OnAuthAvailable(); } \
123 : NS_SCRIPTABLE NS_IMETHOD OnAuthCancelled(bool userCancel) { return _to OnAuthCancelled(userCancel); }
124 :
125 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
126 : #define NS_FORWARD_SAFE_NSIHTTPAUTHENTICABLECHANNEL(_to) \
127 : NS_SCRIPTABLE NS_IMETHOD GetIsSSL(bool *aIsSSL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSSL(aIsSSL); } \
128 : NS_SCRIPTABLE NS_IMETHOD GetProxyMethodIsConnect(bool *aProxyMethodIsConnect) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProxyMethodIsConnect(aProxyMethodIsConnect); } \
129 : NS_SCRIPTABLE NS_IMETHOD Cancel(nsresult aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(aStatus); } \
130 : NS_SCRIPTABLE NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadFlags(aLoadFlags); } \
131 : NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
132 : NS_SCRIPTABLE NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadGroup(aLoadGroup); } \
133 : NS_SCRIPTABLE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationCallbacks(aNotificationCallbacks); } \
134 : NS_SCRIPTABLE NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestMethod(aRequestMethod); } \
135 : NS_SCRIPTABLE NS_IMETHOD GetServerResponseHeader(nsACString & aServerResponseHeader) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerResponseHeader(aServerResponseHeader); } \
136 : NS_SCRIPTABLE NS_IMETHOD GetProxyChallenges(nsACString & aProxyChallenges) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProxyChallenges(aProxyChallenges); } \
137 : NS_SCRIPTABLE NS_IMETHOD GetWWWChallenges(nsACString & aWWWChallenges) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWWWChallenges(aWWWChallenges); } \
138 : NS_SCRIPTABLE NS_IMETHOD SetProxyCredentials(const nsACString & credentials) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProxyCredentials(credentials); } \
139 : NS_SCRIPTABLE NS_IMETHOD SetWWWCredentials(const nsACString & credentials) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWWWCredentials(credentials); } \
140 : NS_SCRIPTABLE NS_IMETHOD OnAuthAvailable(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAuthAvailable(); } \
141 : NS_SCRIPTABLE NS_IMETHOD OnAuthCancelled(bool userCancel) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAuthCancelled(userCancel); }
142 :
143 : #if 0
144 : /* Use the code below as a template for the implementation class for this interface. */
145 :
146 : /* Header file */
147 : class nsHttpAuthenticableChannel : public nsIHttpAuthenticableChannel
148 : {
149 : public:
150 : NS_DECL_ISUPPORTS
151 : NS_DECL_NSIHTTPAUTHENTICABLECHANNEL
152 :
153 : nsHttpAuthenticableChannel();
154 :
155 : private:
156 : ~nsHttpAuthenticableChannel();
157 :
158 : protected:
159 : /* additional members */
160 : };
161 :
162 : /* Implementation file */
163 : NS_IMPL_ISUPPORTS1(nsHttpAuthenticableChannel, nsIHttpAuthenticableChannel)
164 :
165 : nsHttpAuthenticableChannel::nsHttpAuthenticableChannel()
166 : {
167 : /* member initializers and constructor code */
168 : }
169 :
170 : nsHttpAuthenticableChannel::~nsHttpAuthenticableChannel()
171 : {
172 : /* destructor code */
173 : }
174 :
175 : /* readonly attribute boolean isSSL; */
176 : NS_IMETHODIMP nsHttpAuthenticableChannel::GetIsSSL(bool *aIsSSL)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* readonly attribute boolean proxyMethodIsConnect; */
182 : NS_IMETHODIMP nsHttpAuthenticableChannel::GetProxyMethodIsConnect(bool *aProxyMethodIsConnect)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 :
187 : /* void cancel (in nsresult aStatus); */
188 : NS_IMETHODIMP nsHttpAuthenticableChannel::Cancel(nsresult aStatus)
189 : {
190 : return NS_ERROR_NOT_IMPLEMENTED;
191 : }
192 :
193 : /* readonly attribute nsLoadFlags loadFlags; */
194 : NS_IMETHODIMP nsHttpAuthenticableChannel::GetLoadFlags(nsLoadFlags *aLoadFlags)
195 : {
196 : return NS_ERROR_NOT_IMPLEMENTED;
197 : }
198 :
199 : /* readonly attribute nsIURI URI; */
200 : NS_IMETHODIMP nsHttpAuthenticableChannel::GetURI(nsIURI * *aURI)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 :
205 : /* readonly attribute nsILoadGroup loadGroup; */
206 : NS_IMETHODIMP nsHttpAuthenticableChannel::GetLoadGroup(nsILoadGroup * *aLoadGroup)
207 : {
208 : return NS_ERROR_NOT_IMPLEMENTED;
209 : }
210 :
211 : /* readonly attribute nsIInterfaceRequestor notificationCallbacks; */
212 : NS_IMETHODIMP nsHttpAuthenticableChannel::GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks)
213 : {
214 : return NS_ERROR_NOT_IMPLEMENTED;
215 : }
216 :
217 : /* readonly attribute ACString requestMethod; */
218 : NS_IMETHODIMP nsHttpAuthenticableChannel::GetRequestMethod(nsACString & aRequestMethod)
219 : {
220 : return NS_ERROR_NOT_IMPLEMENTED;
221 : }
222 :
223 : /* readonly attribute ACString serverResponseHeader; */
224 : NS_IMETHODIMP nsHttpAuthenticableChannel::GetServerResponseHeader(nsACString & aServerResponseHeader)
225 : {
226 : return NS_ERROR_NOT_IMPLEMENTED;
227 : }
228 :
229 : /* readonly attribute ACString proxyChallenges; */
230 : NS_IMETHODIMP nsHttpAuthenticableChannel::GetProxyChallenges(nsACString & aProxyChallenges)
231 : {
232 : return NS_ERROR_NOT_IMPLEMENTED;
233 : }
234 :
235 : /* readonly attribute ACString WWWChallenges; */
236 : NS_IMETHODIMP nsHttpAuthenticableChannel::GetWWWChallenges(nsACString & aWWWChallenges)
237 : {
238 : return NS_ERROR_NOT_IMPLEMENTED;
239 : }
240 :
241 : /* void setProxyCredentials (in ACString credentials); */
242 : NS_IMETHODIMP nsHttpAuthenticableChannel::SetProxyCredentials(const nsACString & credentials)
243 : {
244 : return NS_ERROR_NOT_IMPLEMENTED;
245 : }
246 :
247 : /* void setWWWCredentials (in ACString credentials); */
248 : NS_IMETHODIMP nsHttpAuthenticableChannel::SetWWWCredentials(const nsACString & credentials)
249 : {
250 : return NS_ERROR_NOT_IMPLEMENTED;
251 : }
252 :
253 : /* void onAuthAvailable (); */
254 : NS_IMETHODIMP nsHttpAuthenticableChannel::OnAuthAvailable()
255 : {
256 : return NS_ERROR_NOT_IMPLEMENTED;
257 : }
258 :
259 : /* void onAuthCancelled (in boolean userCancel); */
260 : NS_IMETHODIMP nsHttpAuthenticableChannel::OnAuthCancelled(bool userCancel)
261 : {
262 : return NS_ERROR_NOT_IMPLEMENTED;
263 : }
264 :
265 : /* End of implementation class template. */
266 : #endif
267 :
268 :
269 : #endif /* __gen_nsIHttpAuthenticableChannel_h__ */
|