45
|
1 module dwt.internal.mozilla.nsIChannel;
|
|
2
|
125
|
3 import dwt.internal.mozilla.Common;
|
|
4 import dwt.internal.mozilla.nsID;
|
|
5 import dwt.internal.mozilla.nsISupports;
|
45
|
6
|
125
|
7 import dwt.internal.mozilla.nsIRequest;
|
|
8 import dwt.internal.mozilla.nsIURI;
|
|
9 import dwt.internal.mozilla.nsIInterfaceRequestor;
|
|
10 import dwt.internal.mozilla.nsIInputStream;
|
|
11 import dwt.internal.mozilla.nsIStreamListener;
|
|
12 import dwt.internal.mozilla.nsStringAPI;
|
45
|
13
|
125
|
14 const char[] NS_ICHANNEL_IID_STR = "c63a055a-a676-4e71-bf3c-6cfa11082018";
|
|
15 const nsIID NS_ICHANNEL_IID=
|
|
16 {0xc63a055a, 0xa676, 0x4e71,
|
|
17 [ 0xbf, 0x3c, 0x6c, 0xfa, 0x11, 0x08, 0x20, 0x18 ]};
|
45
|
18
|
125
|
19 interface nsIChannel : nsIRequest {
|
45
|
20
|
125
|
21 static const char[] IID_STR = NS_ICHANNEL_IID_STR;
|
|
22 static const nsIID IID = NS_ICHANNEL_IID;
|
45
|
23
|
125
|
24 extern(System):
|
|
25 nsresult GetOriginalURI(nsIURI *aOriginalURI);
|
|
26 nsresult SetOriginalURI(nsIURI aOriginalURI);
|
|
27 nsresult GetURI(nsIURI *aURI);
|
|
28 nsresult GetOwner(nsISupports *aOwner);
|
|
29 nsresult SetOwner(nsISupports aOwner);
|
45
|
30
|
125
|
31 nsresult GetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
|
|
32 nsresult SetNotificationCallbacks(nsIInterfaceRequestor aNotificationCallbacks);
|
|
33 nsresult GetSecurityInfo(nsISupports *aSecurityInfo);
|
|
34 nsresult GetContentType(nsACString * aContentType);
|
|
35 nsresult SetContentType(nsACString * aContentType);
|
|
36 nsresult GetContentCharset(nsACString * aContentCharset);
|
|
37 nsresult SetContentCharset(nsACString * aContentCharset);
|
|
38 nsresult GetContentLength(PRInt32 *aContentLength);
|
|
39 nsresult SetContentLength(PRInt32 aContentLength);
|
|
40 nsresult Open(nsIInputStream *_retval);
|
|
41 nsresult AsyncOpen(nsIStreamListener aListener, nsISupports aContext);
|
45
|
42
|
125
|
43 enum { LOAD_DOCUMENT_URI = 65536U };
|
|
44 enum { LOAD_RETARGETED_DOCUMENT_URI = 131072U };
|
|
45 enum { LOAD_REPLACE = 262144U };
|
|
46 enum { LOAD_INITIAL_DOCUMENT_URI = 524288U };
|
|
47 enum { LOAD_TARGETED = 1048576U };
|
|
48 enum { LOAD_CALL_CONTENT_SNIFFERS = 2097152U };
|
|
49 }
|
45
|
50
|