module org.eclipse.swt.internal.mozilla.nsIChannel; import java.lang.all; import org.eclipse.swt.internal.mozilla.Common; import org.eclipse.swt.internal.mozilla.nsID; import org.eclipse.swt.internal.mozilla.nsISupports; import org.eclipse.swt.internal.mozilla.nsIRequest; import org.eclipse.swt.internal.mozilla.nsIURI; import org.eclipse.swt.internal.mozilla.nsIInterfaceRequestor; import org.eclipse.swt.internal.mozilla.nsIInputStream; import org.eclipse.swt.internal.mozilla.nsIStreamListener; import org.eclipse.swt.internal.mozilla.nsStringAPI; const char[] NS_ICHANNEL_IID_STR = "c63a055a-a676-4e71-bf3c-6cfa11082018"; const nsIID NS_ICHANNEL_IID= {0xc63a055a, 0xa676, 0x4e71, [ 0xbf, 0x3c, 0x6c, 0xfa, 0x11, 0x08, 0x20, 0x18 ]}; interface nsIChannel : nsIRequest { static const char[] IID_STR = NS_ICHANNEL_IID_STR; static const nsIID IID = NS_ICHANNEL_IID; extern(System): nsresult GetOriginalURI(nsIURI *aOriginalURI); nsresult SetOriginalURI(nsIURI aOriginalURI); nsresult GetURI(nsIURI *aURI); nsresult GetOwner(nsISupports *aOwner); nsresult SetOwner(nsISupports aOwner); nsresult GetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks); nsresult SetNotificationCallbacks(nsIInterfaceRequestor aNotificationCallbacks); nsresult GetSecurityInfo(nsISupports *aSecurityInfo); nsresult GetContentType(nsACString * aContentType); nsresult SetContentType(nsACString * aContentType); nsresult GetContentCharset(nsACString * aContentCharset); nsresult SetContentCharset(nsACString * aContentCharset); nsresult GetContentLength(PRInt32 *aContentLength); nsresult SetContentLength(PRInt32 aContentLength); nsresult Open(nsIInputStream *_retval); nsresult AsyncOpen(nsIStreamListener aListener, nsISupports aContext); enum { LOAD_DOCUMENT_URI = 65536U }; enum { LOAD_RETARGETED_DOCUMENT_URI = 131072U }; enum { LOAD_REPLACE = 262144U }; enum { LOAD_INITIAL_DOCUMENT_URI = 524288U }; enum { LOAD_TARGETED = 1048576U }; enum { LOAD_CALL_CONTENT_SNIFFERS = 2097152U }; }