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