Mercurial > projects > dwt-linux
view dwt/internal/mozilla/nsIProtocolHandler.d @ 354:59b54fea05d0
Fixes for XPCOM 1.9 and anonymous classes
author | john@andLinux |
---|---|
date | Sun, 14 Dec 2008 02:13:20 -0500 |
parents | 9a4d7706df52 |
children |
line wrap: on
line source
module dwt.internal.mozilla.nsIProtocolHandler; import dwt.internal.mozilla.Common; import dwt.internal.mozilla.nsISupports; import dwt.internal.mozilla.nsID; import dwt.internal.mozilla.nsIURI; import dwt.internal.mozilla.nsIChannel; import dwt.internal.mozilla.nsStringAPI; const char[] NS_IPROTOCOLHANDLER_IID_STR = "15fd6940-8ea7-11d3-93ad-00104ba0fd40"; const nsIID NS_IPROTOCOLHANDLER_IID= {0x15fd6940, 0x8ea7, 0x11d3, [ 0x93, 0xad, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 ]}; interface nsIProtocolHandler : nsISupports { static const char[] IID_STR = NS_IPROTOCOLHANDLER_IID_STR; static const nsIID IID = NS_IPROTOCOLHANDLER_IID; extern(System): nsresult GetScheme(nsACString * aScheme); nsresult GetDefaultPort(PRInt32 *aDefaultPort); nsresult GetProtocolFlags(PRUint32 *aProtocolFlags); nsresult NewURI(nsACString * aSpec, char *aOriginCharset, nsIURI aBaseURI, nsIURI *_retval); nsresult NewChannel(nsIURI aURI, nsIChannel *_retval); nsresult AllowPort(PRInt32 port, char *scheme, PRBool *_retval); enum { URI_STD = 0U }; enum { URI_NORELATIVE = 1U }; enum { URI_NOAUTH = 2U }; enum { ALLOWS_PROXY = 4U }; enum { ALLOWS_PROXY_HTTP = 8U }; }