1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/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 : /* 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 nsIInterfaceRequestor; /* forward declaration */
20 :
21 : class nsIInputStream; /* forward declaration */
22 :
23 : class nsIStreamListener; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIChannel */
27 : #define NS_ICHANNEL_IID_STR "06f6ada3-7729-4e72-8d3f-bf8ba630ff9b"
28 :
29 : #define NS_ICHANNEL_IID \
30 : {0x06f6ada3, 0x7729, 0x4e72, \
31 : { 0x8d, 0x3f, 0xbf, 0x8b, 0xa6, 0x30, 0xff, 0x9b }}
32 :
33 57351 : class NS_NO_VTABLE NS_SCRIPTABLE nsIChannel : public nsIRequest {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICHANNEL_IID)
37 :
38 : /* attribute nsIURI originalURI; */
39 : NS_SCRIPTABLE NS_IMETHOD GetOriginalURI(nsIURI * *aOriginalURI) = 0;
40 : NS_SCRIPTABLE NS_IMETHOD SetOriginalURI(nsIURI *aOriginalURI) = 0;
41 :
42 : /* readonly attribute nsIURI URI; */
43 : NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
44 :
45 : /* attribute nsISupports owner; */
46 : NS_SCRIPTABLE NS_IMETHOD GetOwner(nsISupports * *aOwner) = 0;
47 : NS_SCRIPTABLE NS_IMETHOD SetOwner(nsISupports *aOwner) = 0;
48 :
49 : /* attribute nsIInterfaceRequestor notificationCallbacks; */
50 : NS_SCRIPTABLE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) = 0;
51 : NS_SCRIPTABLE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) = 0;
52 :
53 : /* readonly attribute nsISupports securityInfo; */
54 : NS_SCRIPTABLE NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) = 0;
55 :
56 : /* attribute ACString contentType; */
57 : NS_SCRIPTABLE NS_IMETHOD GetContentType(nsACString & aContentType) = 0;
58 : NS_SCRIPTABLE NS_IMETHOD SetContentType(const nsACString & aContentType) = 0;
59 :
60 : /* attribute ACString contentCharset; */
61 : NS_SCRIPTABLE NS_IMETHOD GetContentCharset(nsACString & aContentCharset) = 0;
62 : NS_SCRIPTABLE NS_IMETHOD SetContentCharset(const nsACString & aContentCharset) = 0;
63 :
64 : /* attribute long contentLength; */
65 : NS_SCRIPTABLE NS_IMETHOD GetContentLength(PRInt32 *aContentLength) = 0;
66 : NS_SCRIPTABLE NS_IMETHOD SetContentLength(PRInt32 aContentLength) = 0;
67 :
68 : /* nsIInputStream open (); */
69 : NS_SCRIPTABLE NS_IMETHOD Open(nsIInputStream * *_retval NS_OUTPARAM) = 0;
70 :
71 : /* void asyncOpen (in nsIStreamListener aListener, in nsISupports aContext); */
72 : NS_SCRIPTABLE NS_IMETHOD AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) = 0;
73 :
74 : enum {
75 : LOAD_DOCUMENT_URI = 65536U,
76 : LOAD_RETARGETED_DOCUMENT_URI = 131072U,
77 : LOAD_REPLACE = 262144U,
78 : LOAD_INITIAL_DOCUMENT_URI = 524288U,
79 : LOAD_TARGETED = 1048576U,
80 : LOAD_CALL_CONTENT_SNIFFERS = 2097152U,
81 : LOAD_CLASSIFY_URI = 4194304U
82 : };
83 :
84 : /* readonly attribute unsigned long contentDisposition; */
85 : NS_SCRIPTABLE NS_IMETHOD GetContentDisposition(PRUint32 *aContentDisposition) = 0;
86 :
87 : enum {
88 : DISPOSITION_INLINE = 0U,
89 : DISPOSITION_ATTACHMENT = 1U
90 : };
91 :
92 : /* readonly attribute AString contentDispositionFilename; */
93 : NS_SCRIPTABLE NS_IMETHOD GetContentDispositionFilename(nsAString & aContentDispositionFilename) = 0;
94 :
95 : /* readonly attribute ACString contentDispositionHeader; */
96 : NS_SCRIPTABLE NS_IMETHOD GetContentDispositionHeader(nsACString & aContentDispositionHeader) = 0;
97 :
98 : };
99 :
100 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIChannel, NS_ICHANNEL_IID)
101 :
102 : /* Use this macro when declaring classes that implement this interface. */
103 : #define NS_DECL_NSICHANNEL \
104 : NS_SCRIPTABLE NS_IMETHOD GetOriginalURI(nsIURI * *aOriginalURI); \
105 : NS_SCRIPTABLE NS_IMETHOD SetOriginalURI(nsIURI *aOriginalURI); \
106 : NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI); \
107 : NS_SCRIPTABLE NS_IMETHOD GetOwner(nsISupports * *aOwner); \
108 : NS_SCRIPTABLE NS_IMETHOD SetOwner(nsISupports *aOwner); \
109 : NS_SCRIPTABLE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks); \
110 : NS_SCRIPTABLE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks); \
111 : NS_SCRIPTABLE NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo); \
112 : NS_SCRIPTABLE NS_IMETHOD GetContentType(nsACString & aContentType); \
113 : NS_SCRIPTABLE NS_IMETHOD SetContentType(const nsACString & aContentType); \
114 : NS_SCRIPTABLE NS_IMETHOD GetContentCharset(nsACString & aContentCharset); \
115 : NS_SCRIPTABLE NS_IMETHOD SetContentCharset(const nsACString & aContentCharset); \
116 : NS_SCRIPTABLE NS_IMETHOD GetContentLength(PRInt32 *aContentLength); \
117 : NS_SCRIPTABLE NS_IMETHOD SetContentLength(PRInt32 aContentLength); \
118 : NS_SCRIPTABLE NS_IMETHOD Open(nsIInputStream * *_retval NS_OUTPARAM); \
119 : NS_SCRIPTABLE NS_IMETHOD AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext); \
120 : NS_SCRIPTABLE NS_IMETHOD GetContentDisposition(PRUint32 *aContentDisposition); \
121 : NS_SCRIPTABLE NS_IMETHOD GetContentDispositionFilename(nsAString & aContentDispositionFilename); \
122 : NS_SCRIPTABLE NS_IMETHOD GetContentDispositionHeader(nsACString & aContentDispositionHeader);
123 :
124 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
125 : #define NS_FORWARD_NSICHANNEL(_to) \
126 : NS_SCRIPTABLE NS_IMETHOD GetOriginalURI(nsIURI * *aOriginalURI) { return _to GetOriginalURI(aOriginalURI); } \
127 : NS_SCRIPTABLE NS_IMETHOD SetOriginalURI(nsIURI *aOriginalURI) { return _to SetOriginalURI(aOriginalURI); } \
128 : NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) { return _to GetURI(aURI); } \
129 : NS_SCRIPTABLE NS_IMETHOD GetOwner(nsISupports * *aOwner) { return _to GetOwner(aOwner); } \
130 : NS_SCRIPTABLE NS_IMETHOD SetOwner(nsISupports *aOwner) { return _to SetOwner(aOwner); } \
131 : NS_SCRIPTABLE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) { return _to GetNotificationCallbacks(aNotificationCallbacks); } \
132 : NS_SCRIPTABLE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) { return _to SetNotificationCallbacks(aNotificationCallbacks); } \
133 : NS_SCRIPTABLE NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) { return _to GetSecurityInfo(aSecurityInfo); } \
134 : NS_SCRIPTABLE NS_IMETHOD GetContentType(nsACString & aContentType) { return _to GetContentType(aContentType); } \
135 : NS_SCRIPTABLE NS_IMETHOD SetContentType(const nsACString & aContentType) { return _to SetContentType(aContentType); } \
136 : NS_SCRIPTABLE NS_IMETHOD GetContentCharset(nsACString & aContentCharset) { return _to GetContentCharset(aContentCharset); } \
137 : NS_SCRIPTABLE NS_IMETHOD SetContentCharset(const nsACString & aContentCharset) { return _to SetContentCharset(aContentCharset); } \
138 : NS_SCRIPTABLE NS_IMETHOD GetContentLength(PRInt32 *aContentLength) { return _to GetContentLength(aContentLength); } \
139 : NS_SCRIPTABLE NS_IMETHOD SetContentLength(PRInt32 aContentLength) { return _to SetContentLength(aContentLength); } \
140 : NS_SCRIPTABLE NS_IMETHOD Open(nsIInputStream * *_retval NS_OUTPARAM) { return _to Open(_retval); } \
141 : NS_SCRIPTABLE NS_IMETHOD AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) { return _to AsyncOpen(aListener, aContext); } \
142 : NS_SCRIPTABLE NS_IMETHOD GetContentDisposition(PRUint32 *aContentDisposition) { return _to GetContentDisposition(aContentDisposition); } \
143 : NS_SCRIPTABLE NS_IMETHOD GetContentDispositionFilename(nsAString & aContentDispositionFilename) { return _to GetContentDispositionFilename(aContentDispositionFilename); } \
144 : NS_SCRIPTABLE NS_IMETHOD GetContentDispositionHeader(nsACString & aContentDispositionHeader) { return _to GetContentDispositionHeader(aContentDispositionHeader); }
145 :
146 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
147 : #define NS_FORWARD_SAFE_NSICHANNEL(_to) \
148 : NS_SCRIPTABLE NS_IMETHOD GetOriginalURI(nsIURI * *aOriginalURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalURI(aOriginalURI); } \
149 : NS_SCRIPTABLE NS_IMETHOD SetOriginalURI(nsIURI *aOriginalURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOriginalURI(aOriginalURI); } \
150 : NS_SCRIPTABLE NS_IMETHOD GetURI(nsIURI * *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
151 : NS_SCRIPTABLE NS_IMETHOD GetOwner(nsISupports * *aOwner) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwner(aOwner); } \
152 : NS_SCRIPTABLE NS_IMETHOD SetOwner(nsISupports *aOwner) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOwner(aOwner); } \
153 : NS_SCRIPTABLE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationCallbacks(aNotificationCallbacks); } \
154 : NS_SCRIPTABLE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNotificationCallbacks(aNotificationCallbacks); } \
155 : NS_SCRIPTABLE NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityInfo(aSecurityInfo); } \
156 : NS_SCRIPTABLE NS_IMETHOD GetContentType(nsACString & aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
157 : NS_SCRIPTABLE NS_IMETHOD SetContentType(const nsACString & aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentType(aContentType); } \
158 : NS_SCRIPTABLE NS_IMETHOD GetContentCharset(nsACString & aContentCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentCharset(aContentCharset); } \
159 : NS_SCRIPTABLE NS_IMETHOD SetContentCharset(const nsACString & aContentCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentCharset(aContentCharset); } \
160 : NS_SCRIPTABLE NS_IMETHOD GetContentLength(PRInt32 *aContentLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentLength(aContentLength); } \
161 : NS_SCRIPTABLE NS_IMETHOD SetContentLength(PRInt32 aContentLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentLength(aContentLength); } \
162 : NS_SCRIPTABLE NS_IMETHOD Open(nsIInputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(_retval); } \
163 : NS_SCRIPTABLE NS_IMETHOD AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOpen(aListener, aContext); } \
164 : NS_SCRIPTABLE NS_IMETHOD GetContentDisposition(PRUint32 *aContentDisposition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentDisposition(aContentDisposition); } \
165 : NS_SCRIPTABLE NS_IMETHOD GetContentDispositionFilename(nsAString & aContentDispositionFilename) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentDispositionFilename(aContentDispositionFilename); } \
166 : NS_SCRIPTABLE NS_IMETHOD GetContentDispositionHeader(nsACString & aContentDispositionHeader) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentDispositionHeader(aContentDispositionHeader); }
167 :
168 : #if 0
169 : /* Use the code below as a template for the implementation class for this interface. */
170 :
171 : /* Header file */
172 : class nsChannel : public nsIChannel
173 : {
174 : public:
175 : NS_DECL_ISUPPORTS
176 : NS_DECL_NSICHANNEL
177 :
178 : nsChannel();
179 :
180 : private:
181 : ~nsChannel();
182 :
183 : protected:
184 : /* additional members */
185 : };
186 :
187 : /* Implementation file */
188 : NS_IMPL_ISUPPORTS1(nsChannel, nsIChannel)
189 :
190 : nsChannel::nsChannel()
191 : {
192 : /* member initializers and constructor code */
193 : }
194 :
195 : nsChannel::~nsChannel()
196 : {
197 : /* destructor code */
198 : }
199 :
200 : /* attribute nsIURI originalURI; */
201 : NS_IMETHODIMP nsChannel::GetOriginalURI(nsIURI * *aOriginalURI)
202 : {
203 : return NS_ERROR_NOT_IMPLEMENTED;
204 : }
205 : NS_IMETHODIMP nsChannel::SetOriginalURI(nsIURI *aOriginalURI)
206 : {
207 : return NS_ERROR_NOT_IMPLEMENTED;
208 : }
209 :
210 : /* readonly attribute nsIURI URI; */
211 : NS_IMETHODIMP nsChannel::GetURI(nsIURI * *aURI)
212 : {
213 : return NS_ERROR_NOT_IMPLEMENTED;
214 : }
215 :
216 : /* attribute nsISupports owner; */
217 : NS_IMETHODIMP nsChannel::GetOwner(nsISupports * *aOwner)
218 : {
219 : return NS_ERROR_NOT_IMPLEMENTED;
220 : }
221 : NS_IMETHODIMP nsChannel::SetOwner(nsISupports *aOwner)
222 : {
223 : return NS_ERROR_NOT_IMPLEMENTED;
224 : }
225 :
226 : /* attribute nsIInterfaceRequestor notificationCallbacks; */
227 : NS_IMETHODIMP nsChannel::GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks)
228 : {
229 : return NS_ERROR_NOT_IMPLEMENTED;
230 : }
231 : NS_IMETHODIMP nsChannel::SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks)
232 : {
233 : return NS_ERROR_NOT_IMPLEMENTED;
234 : }
235 :
236 : /* readonly attribute nsISupports securityInfo; */
237 : NS_IMETHODIMP nsChannel::GetSecurityInfo(nsISupports * *aSecurityInfo)
238 : {
239 : return NS_ERROR_NOT_IMPLEMENTED;
240 : }
241 :
242 : /* attribute ACString contentType; */
243 : NS_IMETHODIMP nsChannel::GetContentType(nsACString & aContentType)
244 : {
245 : return NS_ERROR_NOT_IMPLEMENTED;
246 : }
247 : NS_IMETHODIMP nsChannel::SetContentType(const nsACString & aContentType)
248 : {
249 : return NS_ERROR_NOT_IMPLEMENTED;
250 : }
251 :
252 : /* attribute ACString contentCharset; */
253 : NS_IMETHODIMP nsChannel::GetContentCharset(nsACString & aContentCharset)
254 : {
255 : return NS_ERROR_NOT_IMPLEMENTED;
256 : }
257 : NS_IMETHODIMP nsChannel::SetContentCharset(const nsACString & aContentCharset)
258 : {
259 : return NS_ERROR_NOT_IMPLEMENTED;
260 : }
261 :
262 : /* attribute long contentLength; */
263 : NS_IMETHODIMP nsChannel::GetContentLength(PRInt32 *aContentLength)
264 : {
265 : return NS_ERROR_NOT_IMPLEMENTED;
266 : }
267 : NS_IMETHODIMP nsChannel::SetContentLength(PRInt32 aContentLength)
268 : {
269 : return NS_ERROR_NOT_IMPLEMENTED;
270 : }
271 :
272 : /* nsIInputStream open (); */
273 : NS_IMETHODIMP nsChannel::Open(nsIInputStream * *_retval NS_OUTPARAM)
274 : {
275 : return NS_ERROR_NOT_IMPLEMENTED;
276 : }
277 :
278 : /* void asyncOpen (in nsIStreamListener aListener, in nsISupports aContext); */
279 : NS_IMETHODIMP nsChannel::AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext)
280 : {
281 : return NS_ERROR_NOT_IMPLEMENTED;
282 : }
283 :
284 : /* readonly attribute unsigned long contentDisposition; */
285 : NS_IMETHODIMP nsChannel::GetContentDisposition(PRUint32 *aContentDisposition)
286 : {
287 : return NS_ERROR_NOT_IMPLEMENTED;
288 : }
289 :
290 : /* readonly attribute AString contentDispositionFilename; */
291 : NS_IMETHODIMP nsChannel::GetContentDispositionFilename(nsAString & aContentDispositionFilename)
292 : {
293 : return NS_ERROR_NOT_IMPLEMENTED;
294 : }
295 :
296 : /* readonly attribute ACString contentDispositionHeader; */
297 : NS_IMETHODIMP nsChannel::GetContentDispositionHeader(nsACString & aContentDispositionHeader)
298 : {
299 : return NS_ERROR_NOT_IMPLEMENTED;
300 : }
301 :
302 : /* End of implementation class template. */
303 : #endif
304 :
305 :
306 : #endif /* __gen_nsIChannel_h__ */
|