Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIChannel_h__
6 : #define __gen_nsIChannel_h__
7 :
8 :
9 : #ifndef __gen_nsIRequest_h__
10 : #include "nsIRequest.h"
11 : #endif
12 :
13 : #ifndef __gen_nsILoadInfo_h__
14 : #include "nsILoadInfo.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 nsIURI; /* forward declaration */
22 :
23 : class nsIInterfaceRequestor; /* forward declaration */
24 :
25 : class nsIInputStream; /* forward declaration */
26 :
27 : class nsIStreamListener; /* forward declaration */
28 :
29 : #include "nsCOMPtr.h"
30 :
31 : /* starting interface: nsIChannel */
32 : #define NS_ICHANNEL_IID_STR "2c389865-23db-4aa7-9fe5-60cc7b00697e"
33 :
34 : #define NS_ICHANNEL_IID \
35 : {0x2c389865, 0x23db, 0x4aa7, \
36 : { 0x9f, 0xe5, 0x60, 0xcc, 0x7b, 0x00, 0x69, 0x7e }}
37 :
38 1193 : class nsIChannel : public nsIRequest {
39 : public:
40 :
41 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICHANNEL_IID)
42 :
43 : /* attribute nsIURI originalURI; */
44 : NS_IMETHOD GetOriginalURI(nsIURI * *aOriginalURI) = 0;
45 : NS_IMETHOD SetOriginalURI(nsIURI *aOriginalURI) = 0;
46 :
47 : /* readonly attribute nsIURI URI; */
48 : NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
49 :
50 : /* attribute nsISupports owner; */
51 : NS_IMETHOD GetOwner(nsISupports * *aOwner) = 0;
52 : NS_IMETHOD SetOwner(nsISupports *aOwner) = 0;
53 :
54 : /* attribute nsIInterfaceRequestor notificationCallbacks; */
55 : NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) = 0;
56 : NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) = 0;
57 :
58 : /* readonly attribute nsISupports securityInfo; */
59 : NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) = 0;
60 :
61 : /* attribute ACString contentType; */
62 : NS_IMETHOD GetContentType(nsACString & aContentType) = 0;
63 : NS_IMETHOD SetContentType(const nsACString & aContentType) = 0;
64 :
65 : /* attribute ACString contentCharset; */
66 : NS_IMETHOD GetContentCharset(nsACString & aContentCharset) = 0;
67 : NS_IMETHOD SetContentCharset(const nsACString & aContentCharset) = 0;
68 :
69 : /* attribute int64_t contentLength; */
70 : NS_IMETHOD GetContentLength(int64_t *aContentLength) = 0;
71 : NS_IMETHOD SetContentLength(int64_t aContentLength) = 0;
72 :
73 : /* nsIInputStream open (); */
74 : NS_IMETHOD Open(nsIInputStream * *_retval) = 0;
75 :
76 : /* nsIInputStream open2 (); */
77 : NS_IMETHOD Open2(nsIInputStream * *_retval) = 0;
78 :
79 : /* void asyncOpen (in nsIStreamListener aListener, in nsISupports aContext); */
80 : NS_IMETHOD AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) = 0;
81 :
82 : /* void asyncOpen2 (in nsIStreamListener aListener); */
83 : NS_IMETHOD AsyncOpen2(nsIStreamListener *aListener) = 0;
84 :
85 : enum {
86 : LOAD_DOCUMENT_URI = 65536U,
87 : LOAD_RETARGETED_DOCUMENT_URI = 131072U,
88 : LOAD_REPLACE = 262144U,
89 : LOAD_INITIAL_DOCUMENT_URI = 524288U,
90 : LOAD_TARGETED = 1048576U,
91 : LOAD_CALL_CONTENT_SNIFFERS = 2097152U,
92 : LOAD_CLASSIFY_URI = 4194304U,
93 : LOAD_MEDIA_SNIFFER_OVERRIDES_CONTENT_TYPE = 8388608U,
94 : LOAD_EXPLICIT_CREDENTIALS = 16777216U,
95 : LOAD_BYPASS_SERVICE_WORKER = 33554432U
96 : };
97 :
98 : /* attribute unsigned long contentDisposition; */
99 : NS_IMETHOD GetContentDisposition(uint32_t *aContentDisposition) = 0;
100 : NS_IMETHOD SetContentDisposition(uint32_t aContentDisposition) = 0;
101 :
102 : enum {
103 : DISPOSITION_INLINE = 0U,
104 : DISPOSITION_ATTACHMENT = 1U
105 : };
106 :
107 : /* attribute AString contentDispositionFilename; */
108 : NS_IMETHOD GetContentDispositionFilename(nsAString & aContentDispositionFilename) = 0;
109 : NS_IMETHOD SetContentDispositionFilename(const nsAString & aContentDispositionFilename) = 0;
110 :
111 : /* readonly attribute ACString contentDispositionHeader; */
112 : NS_IMETHOD GetContentDispositionHeader(nsACString & aContentDispositionHeader) = 0;
113 :
114 : /* attribute nsILoadInfo loadInfo; */
115 : NS_IMETHOD GetLoadInfo(nsILoadInfo * *aLoadInfo) = 0;
116 : NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) = 0;
117 :
118 : /* readonly attribute bool isDocument; */
119 : NS_IMETHOD GetIsDocument(bool *aIsDocument) = 0;
120 :
121 3 : inline bool IsDocument()
122 : {
123 3 : bool isDocument = false;
124 3 : if (NS_SUCCEEDED(GetIsDocument(&isDocument)) && isDocument) {
125 1 : return true;
126 : }
127 2 : return false;
128 : }
129 3981 : inline already_AddRefed<nsILoadInfo> GetLoadInfo()
130 : {
131 7962 : nsCOMPtr<nsILoadInfo> result;
132 7962 : mozilla::DebugOnly<nsresult> rv = GetLoadInfo(getter_AddRefs(result));
133 3981 : MOZ_ASSERT(NS_SUCCEEDED(rv) || !result);
134 7962 : return result.forget();
135 : }
136 : };
137 :
138 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIChannel, NS_ICHANNEL_IID)
139 :
140 : /* Use this macro when declaring classes that implement this interface. */
141 : #define NS_DECL_NSICHANNEL \
142 : NS_IMETHOD GetOriginalURI(nsIURI * *aOriginalURI) override; \
143 : NS_IMETHOD SetOriginalURI(nsIURI *aOriginalURI) override; \
144 : NS_IMETHOD GetURI(nsIURI * *aURI) override; \
145 : NS_IMETHOD GetOwner(nsISupports * *aOwner) override; \
146 : NS_IMETHOD SetOwner(nsISupports *aOwner) override; \
147 : NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) override; \
148 : NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override; \
149 : NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) override; \
150 : NS_IMETHOD GetContentType(nsACString & aContentType) override; \
151 : NS_IMETHOD SetContentType(const nsACString & aContentType) override; \
152 : NS_IMETHOD GetContentCharset(nsACString & aContentCharset) override; \
153 : NS_IMETHOD SetContentCharset(const nsACString & aContentCharset) override; \
154 : NS_IMETHOD GetContentLength(int64_t *aContentLength) override; \
155 : NS_IMETHOD SetContentLength(int64_t aContentLength) override; \
156 : NS_IMETHOD Open(nsIInputStream * *_retval) override; \
157 : NS_IMETHOD Open2(nsIInputStream * *_retval) override; \
158 : NS_IMETHOD AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) override; \
159 : NS_IMETHOD AsyncOpen2(nsIStreamListener *aListener) override; \
160 : NS_IMETHOD GetContentDisposition(uint32_t *aContentDisposition) override; \
161 : NS_IMETHOD SetContentDisposition(uint32_t aContentDisposition) override; \
162 : NS_IMETHOD GetContentDispositionFilename(nsAString & aContentDispositionFilename) override; \
163 : NS_IMETHOD SetContentDispositionFilename(const nsAString & aContentDispositionFilename) override; \
164 : NS_IMETHOD GetContentDispositionHeader(nsACString & aContentDispositionHeader) override; \
165 : NS_IMETHOD GetLoadInfo(nsILoadInfo * *aLoadInfo) override; \
166 : NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) override; \
167 : NS_IMETHOD GetIsDocument(bool *aIsDocument) override; \
168 :
169 : /* Use this macro when declaring the members of this interface when the
170 : class doesn't implement the interface. This is useful for forwarding. */
171 : #define NS_DECL_NON_VIRTUAL_NSICHANNEL \
172 : nsresult GetOriginalURI(nsIURI * *aOriginalURI); \
173 : nsresult SetOriginalURI(nsIURI *aOriginalURI); \
174 : nsresult GetURI(nsIURI * *aURI); \
175 : nsresult GetOwner(nsISupports * *aOwner); \
176 : nsresult SetOwner(nsISupports *aOwner); \
177 : nsresult GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks); \
178 : nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks); \
179 : nsresult GetSecurityInfo(nsISupports * *aSecurityInfo); \
180 : nsresult GetContentType(nsACString & aContentType); \
181 : nsresult SetContentType(const nsACString & aContentType); \
182 : nsresult GetContentCharset(nsACString & aContentCharset); \
183 : nsresult SetContentCharset(const nsACString & aContentCharset); \
184 : nsresult GetContentLength(int64_t *aContentLength); \
185 : nsresult SetContentLength(int64_t aContentLength); \
186 : nsresult Open(nsIInputStream * *_retval); \
187 : nsresult Open2(nsIInputStream * *_retval); \
188 : nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext); \
189 : nsresult AsyncOpen2(nsIStreamListener *aListener); \
190 : nsresult GetContentDisposition(uint32_t *aContentDisposition); \
191 : nsresult SetContentDisposition(uint32_t aContentDisposition); \
192 : nsresult GetContentDispositionFilename(nsAString & aContentDispositionFilename); \
193 : nsresult SetContentDispositionFilename(const nsAString & aContentDispositionFilename); \
194 : nsresult GetContentDispositionHeader(nsACString & aContentDispositionHeader); \
195 : nsresult GetLoadInfo(nsILoadInfo * *aLoadInfo); \
196 : nsresult SetLoadInfo(nsILoadInfo *aLoadInfo); \
197 : nsresult GetIsDocument(bool *aIsDocument); \
198 :
199 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
200 : #define NS_FORWARD_NSICHANNEL(_to) \
201 : NS_IMETHOD GetOriginalURI(nsIURI * *aOriginalURI) override { return _to GetOriginalURI(aOriginalURI); } \
202 : NS_IMETHOD SetOriginalURI(nsIURI *aOriginalURI) override { return _to SetOriginalURI(aOriginalURI); } \
203 : NS_IMETHOD GetURI(nsIURI * *aURI) override { return _to GetURI(aURI); } \
204 : NS_IMETHOD GetOwner(nsISupports * *aOwner) override { return _to GetOwner(aOwner); } \
205 : NS_IMETHOD SetOwner(nsISupports *aOwner) override { return _to SetOwner(aOwner); } \
206 : NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) override { return _to GetNotificationCallbacks(aNotificationCallbacks); } \
207 : NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override { return _to SetNotificationCallbacks(aNotificationCallbacks); } \
208 : NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) override { return _to GetSecurityInfo(aSecurityInfo); } \
209 : NS_IMETHOD GetContentType(nsACString & aContentType) override { return _to GetContentType(aContentType); } \
210 : NS_IMETHOD SetContentType(const nsACString & aContentType) override { return _to SetContentType(aContentType); } \
211 : NS_IMETHOD GetContentCharset(nsACString & aContentCharset) override { return _to GetContentCharset(aContentCharset); } \
212 : NS_IMETHOD SetContentCharset(const nsACString & aContentCharset) override { return _to SetContentCharset(aContentCharset); } \
213 : NS_IMETHOD GetContentLength(int64_t *aContentLength) override { return _to GetContentLength(aContentLength); } \
214 : NS_IMETHOD SetContentLength(int64_t aContentLength) override { return _to SetContentLength(aContentLength); } \
215 : NS_IMETHOD Open(nsIInputStream * *_retval) override { return _to Open(_retval); } \
216 : NS_IMETHOD Open2(nsIInputStream * *_retval) override { return _to Open2(_retval); } \
217 : NS_IMETHOD AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) override { return _to AsyncOpen(aListener, aContext); } \
218 : NS_IMETHOD AsyncOpen2(nsIStreamListener *aListener) override { return _to AsyncOpen2(aListener); } \
219 : NS_IMETHOD GetContentDisposition(uint32_t *aContentDisposition) override { return _to GetContentDisposition(aContentDisposition); } \
220 : NS_IMETHOD SetContentDisposition(uint32_t aContentDisposition) override { return _to SetContentDisposition(aContentDisposition); } \
221 : NS_IMETHOD GetContentDispositionFilename(nsAString & aContentDispositionFilename) override { return _to GetContentDispositionFilename(aContentDispositionFilename); } \
222 : NS_IMETHOD SetContentDispositionFilename(const nsAString & aContentDispositionFilename) override { return _to SetContentDispositionFilename(aContentDispositionFilename); } \
223 : NS_IMETHOD GetContentDispositionHeader(nsACString & aContentDispositionHeader) override { return _to GetContentDispositionHeader(aContentDispositionHeader); } \
224 : NS_IMETHOD GetLoadInfo(nsILoadInfo * *aLoadInfo) override { return _to GetLoadInfo(aLoadInfo); } \
225 : NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) override { return _to SetLoadInfo(aLoadInfo); } \
226 : NS_IMETHOD GetIsDocument(bool *aIsDocument) override { return _to GetIsDocument(aIsDocument); } \
227 :
228 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
229 : #define NS_FORWARD_SAFE_NSICHANNEL(_to) \
230 : NS_IMETHOD GetOriginalURI(nsIURI * *aOriginalURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalURI(aOriginalURI); } \
231 : NS_IMETHOD SetOriginalURI(nsIURI *aOriginalURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOriginalURI(aOriginalURI); } \
232 : NS_IMETHOD GetURI(nsIURI * *aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
233 : NS_IMETHOD GetOwner(nsISupports * *aOwner) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwner(aOwner); } \
234 : NS_IMETHOD SetOwner(nsISupports *aOwner) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOwner(aOwner); } \
235 : NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationCallbacks(aNotificationCallbacks); } \
236 : NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNotificationCallbacks(aNotificationCallbacks); } \
237 : NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityInfo(aSecurityInfo); } \
238 : NS_IMETHOD GetContentType(nsACString & aContentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
239 : NS_IMETHOD SetContentType(const nsACString & aContentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentType(aContentType); } \
240 : NS_IMETHOD GetContentCharset(nsACString & aContentCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentCharset(aContentCharset); } \
241 : NS_IMETHOD SetContentCharset(const nsACString & aContentCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentCharset(aContentCharset); } \
242 : NS_IMETHOD GetContentLength(int64_t *aContentLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentLength(aContentLength); } \
243 : NS_IMETHOD SetContentLength(int64_t aContentLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentLength(aContentLength); } \
244 : NS_IMETHOD Open(nsIInputStream * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(_retval); } \
245 : NS_IMETHOD Open2(nsIInputStream * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Open2(_retval); } \
246 : NS_IMETHOD AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOpen(aListener, aContext); } \
247 : NS_IMETHOD AsyncOpen2(nsIStreamListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOpen2(aListener); } \
248 : NS_IMETHOD GetContentDisposition(uint32_t *aContentDisposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentDisposition(aContentDisposition); } \
249 : NS_IMETHOD SetContentDisposition(uint32_t aContentDisposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentDisposition(aContentDisposition); } \
250 : NS_IMETHOD GetContentDispositionFilename(nsAString & aContentDispositionFilename) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentDispositionFilename(aContentDispositionFilename); } \
251 : NS_IMETHOD SetContentDispositionFilename(const nsAString & aContentDispositionFilename) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentDispositionFilename(aContentDispositionFilename); } \
252 : NS_IMETHOD GetContentDispositionHeader(nsACString & aContentDispositionHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentDispositionHeader(aContentDispositionHeader); } \
253 : NS_IMETHOD GetLoadInfo(nsILoadInfo * *aLoadInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadInfo(aLoadInfo); } \
254 : NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadInfo(aLoadInfo); } \
255 : NS_IMETHOD GetIsDocument(bool *aIsDocument) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDocument(aIsDocument); } \
256 :
257 : #if 0
258 : /* Use the code below as a template for the implementation class for this interface. */
259 :
260 : /* Header file */
261 : class nsChannel : public nsIChannel
262 : {
263 : public:
264 : NS_DECL_ISUPPORTS
265 : NS_DECL_NSICHANNEL
266 :
267 : nsChannel();
268 :
269 : private:
270 : ~nsChannel();
271 :
272 : protected:
273 : /* additional members */
274 : };
275 :
276 : /* Implementation file */
277 : NS_IMPL_ISUPPORTS(nsChannel, nsIChannel)
278 :
279 : nsChannel::nsChannel()
280 : {
281 : /* member initializers and constructor code */
282 : }
283 :
284 : nsChannel::~nsChannel()
285 : {
286 : /* destructor code */
287 : }
288 :
289 : /* attribute nsIURI originalURI; */
290 : NS_IMETHODIMP nsChannel::GetOriginalURI(nsIURI * *aOriginalURI)
291 : {
292 : return NS_ERROR_NOT_IMPLEMENTED;
293 : }
294 : NS_IMETHODIMP nsChannel::SetOriginalURI(nsIURI *aOriginalURI)
295 : {
296 : return NS_ERROR_NOT_IMPLEMENTED;
297 : }
298 :
299 : /* readonly attribute nsIURI URI; */
300 : NS_IMETHODIMP nsChannel::GetURI(nsIURI * *aURI)
301 : {
302 : return NS_ERROR_NOT_IMPLEMENTED;
303 : }
304 :
305 : /* attribute nsISupports owner; */
306 : NS_IMETHODIMP nsChannel::GetOwner(nsISupports * *aOwner)
307 : {
308 : return NS_ERROR_NOT_IMPLEMENTED;
309 : }
310 : NS_IMETHODIMP nsChannel::SetOwner(nsISupports *aOwner)
311 : {
312 : return NS_ERROR_NOT_IMPLEMENTED;
313 : }
314 :
315 : /* attribute nsIInterfaceRequestor notificationCallbacks; */
316 : NS_IMETHODIMP nsChannel::GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks)
317 : {
318 : return NS_ERROR_NOT_IMPLEMENTED;
319 : }
320 : NS_IMETHODIMP nsChannel::SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks)
321 : {
322 : return NS_ERROR_NOT_IMPLEMENTED;
323 : }
324 :
325 : /* readonly attribute nsISupports securityInfo; */
326 : NS_IMETHODIMP nsChannel::GetSecurityInfo(nsISupports * *aSecurityInfo)
327 : {
328 : return NS_ERROR_NOT_IMPLEMENTED;
329 : }
330 :
331 : /* attribute ACString contentType; */
332 : NS_IMETHODIMP nsChannel::GetContentType(nsACString & aContentType)
333 : {
334 : return NS_ERROR_NOT_IMPLEMENTED;
335 : }
336 : NS_IMETHODIMP nsChannel::SetContentType(const nsACString & aContentType)
337 : {
338 : return NS_ERROR_NOT_IMPLEMENTED;
339 : }
340 :
341 : /* attribute ACString contentCharset; */
342 : NS_IMETHODIMP nsChannel::GetContentCharset(nsACString & aContentCharset)
343 : {
344 : return NS_ERROR_NOT_IMPLEMENTED;
345 : }
346 : NS_IMETHODIMP nsChannel::SetContentCharset(const nsACString & aContentCharset)
347 : {
348 : return NS_ERROR_NOT_IMPLEMENTED;
349 : }
350 :
351 : /* attribute int64_t contentLength; */
352 : NS_IMETHODIMP nsChannel::GetContentLength(int64_t *aContentLength)
353 : {
354 : return NS_ERROR_NOT_IMPLEMENTED;
355 : }
356 : NS_IMETHODIMP nsChannel::SetContentLength(int64_t aContentLength)
357 : {
358 : return NS_ERROR_NOT_IMPLEMENTED;
359 : }
360 :
361 : /* nsIInputStream open (); */
362 : NS_IMETHODIMP nsChannel::Open(nsIInputStream * *_retval)
363 : {
364 : return NS_ERROR_NOT_IMPLEMENTED;
365 : }
366 :
367 : /* nsIInputStream open2 (); */
368 : NS_IMETHODIMP nsChannel::Open2(nsIInputStream * *_retval)
369 : {
370 : return NS_ERROR_NOT_IMPLEMENTED;
371 : }
372 :
373 : /* void asyncOpen (in nsIStreamListener aListener, in nsISupports aContext); */
374 : NS_IMETHODIMP nsChannel::AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext)
375 : {
376 : return NS_ERROR_NOT_IMPLEMENTED;
377 : }
378 :
379 : /* void asyncOpen2 (in nsIStreamListener aListener); */
380 : NS_IMETHODIMP nsChannel::AsyncOpen2(nsIStreamListener *aListener)
381 : {
382 : return NS_ERROR_NOT_IMPLEMENTED;
383 : }
384 :
385 : /* attribute unsigned long contentDisposition; */
386 : NS_IMETHODIMP nsChannel::GetContentDisposition(uint32_t *aContentDisposition)
387 : {
388 : return NS_ERROR_NOT_IMPLEMENTED;
389 : }
390 : NS_IMETHODIMP nsChannel::SetContentDisposition(uint32_t aContentDisposition)
391 : {
392 : return NS_ERROR_NOT_IMPLEMENTED;
393 : }
394 :
395 : /* attribute AString contentDispositionFilename; */
396 : NS_IMETHODIMP nsChannel::GetContentDispositionFilename(nsAString & aContentDispositionFilename)
397 : {
398 : return NS_ERROR_NOT_IMPLEMENTED;
399 : }
400 : NS_IMETHODIMP nsChannel::SetContentDispositionFilename(const nsAString & aContentDispositionFilename)
401 : {
402 : return NS_ERROR_NOT_IMPLEMENTED;
403 : }
404 :
405 : /* readonly attribute ACString contentDispositionHeader; */
406 : NS_IMETHODIMP nsChannel::GetContentDispositionHeader(nsACString & aContentDispositionHeader)
407 : {
408 : return NS_ERROR_NOT_IMPLEMENTED;
409 : }
410 :
411 : /* attribute nsILoadInfo loadInfo; */
412 : NS_IMETHODIMP nsChannel::GetLoadInfo(nsILoadInfo * *aLoadInfo)
413 : {
414 : return NS_ERROR_NOT_IMPLEMENTED;
415 : }
416 : NS_IMETHODIMP nsChannel::SetLoadInfo(nsILoadInfo *aLoadInfo)
417 : {
418 : return NS_ERROR_NOT_IMPLEMENTED;
419 : }
420 :
421 : /* readonly attribute bool isDocument; */
422 : NS_IMETHODIMP nsChannel::GetIsDocument(bool *aIsDocument)
423 : {
424 : return NS_ERROR_NOT_IMPLEMENTED;
425 : }
426 :
427 : /* End of implementation class template. */
428 : #endif
429 :
430 :
431 : #endif /* __gen_nsIChannel_h__ */
|