| 1 |
module dwt.internal.mozilla.nsIChannel; |
|---|
| 2 |
|
|---|
| 3 |
import dwt.internal.mozilla.Common; |
|---|
| 4 |
import dwt.internal.mozilla.nsID; |
|---|
| 5 |
import dwt.internal.mozilla.nsISupports; |
|---|
| 6 |
|
|---|
| 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; |
|---|
| 13 |
|
|---|
| 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 ]}; |
|---|
| 18 |
|
|---|
| 19 |
interface nsIChannel : nsIRequest { |
|---|
| 20 |
|
|---|
| 21 |
static const char[] IID_STR = NS_ICHANNEL_IID_STR; |
|---|
| 22 |
static const nsIID IID = NS_ICHANNEL_IID; |
|---|
| 23 |
|
|---|
| 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); |
|---|
| 30 |
|
|---|
| 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); |
|---|
| 42 |
|
|---|
| 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 |
} |
|---|