Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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_nsIRequest_h__
14 : #include "nsIRequest.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 7 : class NS_NO_VTABLE nsIHttpAuthenticableChannel : public nsIProxiedChannel {
36 : public:
37 :
38 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPAUTHENTICABLECHANNEL_IID)
39 :
40 : /* [must_use] readonly attribute boolean isSSL; */
41 : MOZ_MUST_USE NS_IMETHOD GetIsSSL(bool *aIsSSL) = 0;
42 :
43 : /* [must_use] readonly attribute boolean proxyMethodIsConnect; */
44 : MOZ_MUST_USE NS_IMETHOD GetProxyMethodIsConnect(bool *aProxyMethodIsConnect) = 0;
45 :
46 : /* [must_use] void cancel (in nsresult aStatus); */
47 : MOZ_MUST_USE NS_IMETHOD Cancel(nsresult aStatus) = 0;
48 :
49 : /* [must_use] readonly attribute nsLoadFlags loadFlags; */
50 : MOZ_MUST_USE NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) = 0;
51 :
52 : /* [must_use] readonly attribute nsIURI URI; */
53 : MOZ_MUST_USE NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
54 :
55 : /* [must_use] readonly attribute nsILoadGroup loadGroup; */
56 : MOZ_MUST_USE NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) = 0;
57 :
58 : /* [must_use] readonly attribute nsIInterfaceRequestor notificationCallbacks; */
59 : MOZ_MUST_USE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) = 0;
60 :
61 : /* [must_use] readonly attribute ACString requestMethod; */
62 : MOZ_MUST_USE NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) = 0;
63 :
64 : /* [must_use] readonly attribute ACString serverResponseHeader; */
65 : MOZ_MUST_USE NS_IMETHOD GetServerResponseHeader(nsACString & aServerResponseHeader) = 0;
66 :
67 : /* [must_use] readonly attribute ACString proxyChallenges; */
68 : MOZ_MUST_USE NS_IMETHOD GetProxyChallenges(nsACString & aProxyChallenges) = 0;
69 :
70 : /* [must_use] readonly attribute ACString WWWChallenges; */
71 : MOZ_MUST_USE NS_IMETHOD GetWWWChallenges(nsACString & aWWWChallenges) = 0;
72 :
73 : /* [must_use] void setProxyCredentials (in ACString credentials); */
74 : MOZ_MUST_USE NS_IMETHOD SetProxyCredentials(const nsACString & credentials) = 0;
75 :
76 : /* [must_use] void setWWWCredentials (in ACString credentials); */
77 : MOZ_MUST_USE NS_IMETHOD SetWWWCredentials(const nsACString & credentials) = 0;
78 :
79 : /* [must_use] void onAuthAvailable (); */
80 : MOZ_MUST_USE NS_IMETHOD OnAuthAvailable(void) = 0;
81 :
82 : /* [must_use] void onAuthCancelled (in boolean userCancel); */
83 : MOZ_MUST_USE NS_IMETHOD OnAuthCancelled(bool userCancel) = 0;
84 :
85 : /* [must_use] void closeStickyConnection (); */
86 : MOZ_MUST_USE NS_IMETHOD CloseStickyConnection(void) = 0;
87 :
88 : /* void connectionRestartable (in boolean restartable); */
89 : NS_IMETHOD ConnectionRestartable(bool restartable) = 0;
90 :
91 : };
92 :
93 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpAuthenticableChannel, NS_IHTTPAUTHENTICABLECHANNEL_IID)
94 :
95 : /* Use this macro when declaring classes that implement this interface. */
96 : #define NS_DECL_NSIHTTPAUTHENTICABLECHANNEL \
97 : MOZ_MUST_USE NS_IMETHOD GetIsSSL(bool *aIsSSL) override; \
98 : MOZ_MUST_USE NS_IMETHOD GetProxyMethodIsConnect(bool *aProxyMethodIsConnect) override; \
99 : MOZ_MUST_USE NS_IMETHOD Cancel(nsresult aStatus) override; \
100 : MOZ_MUST_USE NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) override; \
101 : MOZ_MUST_USE NS_IMETHOD GetURI(nsIURI * *aURI) override; \
102 : MOZ_MUST_USE NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) override; \
103 : MOZ_MUST_USE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) override; \
104 : MOZ_MUST_USE NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) override; \
105 : MOZ_MUST_USE NS_IMETHOD GetServerResponseHeader(nsACString & aServerResponseHeader) override; \
106 : MOZ_MUST_USE NS_IMETHOD GetProxyChallenges(nsACString & aProxyChallenges) override; \
107 : MOZ_MUST_USE NS_IMETHOD GetWWWChallenges(nsACString & aWWWChallenges) override; \
108 : MOZ_MUST_USE NS_IMETHOD SetProxyCredentials(const nsACString & credentials) override; \
109 : MOZ_MUST_USE NS_IMETHOD SetWWWCredentials(const nsACString & credentials) override; \
110 : MOZ_MUST_USE NS_IMETHOD OnAuthAvailable(void) override; \
111 : MOZ_MUST_USE NS_IMETHOD OnAuthCancelled(bool userCancel) override; \
112 : MOZ_MUST_USE NS_IMETHOD CloseStickyConnection(void) override; \
113 : NS_IMETHOD ConnectionRestartable(bool restartable) override;
114 :
115 : /* Use this macro when declaring the members of this interface when the
116 : class doesn't implement the interface. This is useful for forwarding. */
117 : #define NS_DECL_NON_VIRTUAL_NSIHTTPAUTHENTICABLECHANNEL \
118 : MOZ_MUST_USE nsresult GetIsSSL(bool *aIsSSL); \
119 : MOZ_MUST_USE nsresult GetProxyMethodIsConnect(bool *aProxyMethodIsConnect); \
120 : MOZ_MUST_USE nsresult Cancel(nsresult aStatus); \
121 : MOZ_MUST_USE nsresult GetLoadFlags(nsLoadFlags *aLoadFlags); \
122 : MOZ_MUST_USE nsresult GetURI(nsIURI * *aURI); \
123 : MOZ_MUST_USE nsresult GetLoadGroup(nsILoadGroup * *aLoadGroup); \
124 : MOZ_MUST_USE nsresult GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks); \
125 : MOZ_MUST_USE nsresult GetRequestMethod(nsACString & aRequestMethod); \
126 : MOZ_MUST_USE nsresult GetServerResponseHeader(nsACString & aServerResponseHeader); \
127 : MOZ_MUST_USE nsresult GetProxyChallenges(nsACString & aProxyChallenges); \
128 : MOZ_MUST_USE nsresult GetWWWChallenges(nsACString & aWWWChallenges); \
129 : MOZ_MUST_USE nsresult SetProxyCredentials(const nsACString & credentials); \
130 : MOZ_MUST_USE nsresult SetWWWCredentials(const nsACString & credentials); \
131 : MOZ_MUST_USE nsresult OnAuthAvailable(void); \
132 : MOZ_MUST_USE nsresult OnAuthCancelled(bool userCancel); \
133 : MOZ_MUST_USE nsresult CloseStickyConnection(void); \
134 : nsresult ConnectionRestartable(bool restartable);
135 :
136 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
137 : #define NS_FORWARD_NSIHTTPAUTHENTICABLECHANNEL(_to) \
138 : MOZ_MUST_USE NS_IMETHOD GetIsSSL(bool *aIsSSL) override { return _to GetIsSSL(aIsSSL); } \
139 : MOZ_MUST_USE NS_IMETHOD GetProxyMethodIsConnect(bool *aProxyMethodIsConnect) override { return _to GetProxyMethodIsConnect(aProxyMethodIsConnect); } \
140 : MOZ_MUST_USE NS_IMETHOD Cancel(nsresult aStatus) override { return _to Cancel(aStatus); } \
141 : MOZ_MUST_USE NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) override { return _to GetLoadFlags(aLoadFlags); } \
142 : MOZ_MUST_USE NS_IMETHOD GetURI(nsIURI * *aURI) override { return _to GetURI(aURI); } \
143 : MOZ_MUST_USE NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) override { return _to GetLoadGroup(aLoadGroup); } \
144 : MOZ_MUST_USE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) override { return _to GetNotificationCallbacks(aNotificationCallbacks); } \
145 : MOZ_MUST_USE NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) override { return _to GetRequestMethod(aRequestMethod); } \
146 : MOZ_MUST_USE NS_IMETHOD GetServerResponseHeader(nsACString & aServerResponseHeader) override { return _to GetServerResponseHeader(aServerResponseHeader); } \
147 : MOZ_MUST_USE NS_IMETHOD GetProxyChallenges(nsACString & aProxyChallenges) override { return _to GetProxyChallenges(aProxyChallenges); } \
148 : MOZ_MUST_USE NS_IMETHOD GetWWWChallenges(nsACString & aWWWChallenges) override { return _to GetWWWChallenges(aWWWChallenges); } \
149 : MOZ_MUST_USE NS_IMETHOD SetProxyCredentials(const nsACString & credentials) override { return _to SetProxyCredentials(credentials); } \
150 : MOZ_MUST_USE NS_IMETHOD SetWWWCredentials(const nsACString & credentials) override { return _to SetWWWCredentials(credentials); } \
151 : MOZ_MUST_USE NS_IMETHOD OnAuthAvailable(void) override { return _to OnAuthAvailable(); } \
152 : MOZ_MUST_USE NS_IMETHOD OnAuthCancelled(bool userCancel) override { return _to OnAuthCancelled(userCancel); } \
153 : MOZ_MUST_USE NS_IMETHOD CloseStickyConnection(void) override { return _to CloseStickyConnection(); } \
154 : NS_IMETHOD ConnectionRestartable(bool restartable) override { return _to ConnectionRestartable(restartable); }
155 :
156 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
157 : #define NS_FORWARD_SAFE_NSIHTTPAUTHENTICABLECHANNEL(_to) \
158 : MOZ_MUST_USE NS_IMETHOD GetIsSSL(bool *aIsSSL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSSL(aIsSSL); } \
159 : MOZ_MUST_USE NS_IMETHOD GetProxyMethodIsConnect(bool *aProxyMethodIsConnect) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProxyMethodIsConnect(aProxyMethodIsConnect); } \
160 : MOZ_MUST_USE NS_IMETHOD Cancel(nsresult aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(aStatus); } \
161 : MOZ_MUST_USE NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadFlags(aLoadFlags); } \
162 : MOZ_MUST_USE NS_IMETHOD GetURI(nsIURI * *aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
163 : MOZ_MUST_USE NS_IMETHOD GetLoadGroup(nsILoadGroup * *aLoadGroup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadGroup(aLoadGroup); } \
164 : MOZ_MUST_USE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationCallbacks(aNotificationCallbacks); } \
165 : MOZ_MUST_USE NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestMethod(aRequestMethod); } \
166 : MOZ_MUST_USE NS_IMETHOD GetServerResponseHeader(nsACString & aServerResponseHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerResponseHeader(aServerResponseHeader); } \
167 : MOZ_MUST_USE NS_IMETHOD GetProxyChallenges(nsACString & aProxyChallenges) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProxyChallenges(aProxyChallenges); } \
168 : MOZ_MUST_USE NS_IMETHOD GetWWWChallenges(nsACString & aWWWChallenges) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWWWChallenges(aWWWChallenges); } \
169 : MOZ_MUST_USE NS_IMETHOD SetProxyCredentials(const nsACString & credentials) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProxyCredentials(credentials); } \
170 : MOZ_MUST_USE NS_IMETHOD SetWWWCredentials(const nsACString & credentials) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWWWCredentials(credentials); } \
171 : MOZ_MUST_USE NS_IMETHOD OnAuthAvailable(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAuthAvailable(); } \
172 : MOZ_MUST_USE NS_IMETHOD OnAuthCancelled(bool userCancel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAuthCancelled(userCancel); } \
173 : MOZ_MUST_USE NS_IMETHOD CloseStickyConnection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseStickyConnection(); } \
174 : NS_IMETHOD ConnectionRestartable(bool restartable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConnectionRestartable(restartable); }
175 :
176 : #if 0
177 : /* Use the code below as a template for the implementation class for this interface. */
178 :
179 : /* Header file */
180 : class nsHttpAuthenticableChannel : public nsIHttpAuthenticableChannel
181 : {
182 : public:
183 : NS_DECL_ISUPPORTS
184 : NS_DECL_NSIHTTPAUTHENTICABLECHANNEL
185 :
186 : nsHttpAuthenticableChannel();
187 :
188 : private:
189 : ~nsHttpAuthenticableChannel();
190 :
191 : protected:
192 : /* additional members */
193 : };
194 :
195 : /* Implementation file */
196 : NS_IMPL_ISUPPORTS(nsHttpAuthenticableChannel, nsIHttpAuthenticableChannel)
197 :
198 : nsHttpAuthenticableChannel::nsHttpAuthenticableChannel()
199 : {
200 : /* member initializers and constructor code */
201 : }
202 :
203 : nsHttpAuthenticableChannel::~nsHttpAuthenticableChannel()
204 : {
205 : /* destructor code */
206 : }
207 :
208 : /* [must_use] readonly attribute boolean isSSL; */
209 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::GetIsSSL(bool *aIsSSL)
210 : {
211 : return NS_ERROR_NOT_IMPLEMENTED;
212 : }
213 :
214 : /* [must_use] readonly attribute boolean proxyMethodIsConnect; */
215 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::GetProxyMethodIsConnect(bool *aProxyMethodIsConnect)
216 : {
217 : return NS_ERROR_NOT_IMPLEMENTED;
218 : }
219 :
220 : /* [must_use] void cancel (in nsresult aStatus); */
221 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::Cancel(nsresult aStatus)
222 : {
223 : return NS_ERROR_NOT_IMPLEMENTED;
224 : }
225 :
226 : /* [must_use] readonly attribute nsLoadFlags loadFlags; */
227 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::GetLoadFlags(nsLoadFlags *aLoadFlags)
228 : {
229 : return NS_ERROR_NOT_IMPLEMENTED;
230 : }
231 :
232 : /* [must_use] readonly attribute nsIURI URI; */
233 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::GetURI(nsIURI * *aURI)
234 : {
235 : return NS_ERROR_NOT_IMPLEMENTED;
236 : }
237 :
238 : /* [must_use] readonly attribute nsILoadGroup loadGroup; */
239 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::GetLoadGroup(nsILoadGroup * *aLoadGroup)
240 : {
241 : return NS_ERROR_NOT_IMPLEMENTED;
242 : }
243 :
244 : /* [must_use] readonly attribute nsIInterfaceRequestor notificationCallbacks; */
245 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks)
246 : {
247 : return NS_ERROR_NOT_IMPLEMENTED;
248 : }
249 :
250 : /* [must_use] readonly attribute ACString requestMethod; */
251 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::GetRequestMethod(nsACString & aRequestMethod)
252 : {
253 : return NS_ERROR_NOT_IMPLEMENTED;
254 : }
255 :
256 : /* [must_use] readonly attribute ACString serverResponseHeader; */
257 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::GetServerResponseHeader(nsACString & aServerResponseHeader)
258 : {
259 : return NS_ERROR_NOT_IMPLEMENTED;
260 : }
261 :
262 : /* [must_use] readonly attribute ACString proxyChallenges; */
263 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::GetProxyChallenges(nsACString & aProxyChallenges)
264 : {
265 : return NS_ERROR_NOT_IMPLEMENTED;
266 : }
267 :
268 : /* [must_use] readonly attribute ACString WWWChallenges; */
269 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::GetWWWChallenges(nsACString & aWWWChallenges)
270 : {
271 : return NS_ERROR_NOT_IMPLEMENTED;
272 : }
273 :
274 : /* [must_use] void setProxyCredentials (in ACString credentials); */
275 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::SetProxyCredentials(const nsACString & credentials)
276 : {
277 : return NS_ERROR_NOT_IMPLEMENTED;
278 : }
279 :
280 : /* [must_use] void setWWWCredentials (in ACString credentials); */
281 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::SetWWWCredentials(const nsACString & credentials)
282 : {
283 : return NS_ERROR_NOT_IMPLEMENTED;
284 : }
285 :
286 : /* [must_use] void onAuthAvailable (); */
287 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::OnAuthAvailable()
288 : {
289 : return NS_ERROR_NOT_IMPLEMENTED;
290 : }
291 :
292 : /* [must_use] void onAuthCancelled (in boolean userCancel); */
293 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::OnAuthCancelled(bool userCancel)
294 : {
295 : return NS_ERROR_NOT_IMPLEMENTED;
296 : }
297 :
298 : /* [must_use] void closeStickyConnection (); */
299 : MOZ_MUST_USE NS_IMETHODIMP nsHttpAuthenticableChannel::CloseStickyConnection()
300 : {
301 : return NS_ERROR_NOT_IMPLEMENTED;
302 : }
303 :
304 : /* void connectionRestartable (in boolean restartable); */
305 : NS_IMETHODIMP nsHttpAuthenticableChannel::ConnectionRestartable(bool restartable)
306 : {
307 : return NS_ERROR_NOT_IMPLEMENTED;
308 : }
309 :
310 : /* End of implementation class template. */
311 : #endif
312 :
313 :
314 : #endif /* __gen_nsIHttpAuthenticableChannel_h__ */
|