Mercurial > projects > dwt-win
comparison dwt/internal/mozilla/nsIProtocolHandler.d @ 327:b0d7eb5bd76c
Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Fri, 02 Jan 2009 17:45:10 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
326:e4d29367b1fa | 327:b0d7eb5bd76c |
---|---|
1 module dwt.internal.mozilla.nsIProtocolHandler; | |
2 | |
3 import dwt.internal.mozilla.Common; | |
4 import dwt.internal.mozilla.nsISupports; | |
5 import dwt.internal.mozilla.nsID; | |
6 import dwt.internal.mozilla.nsIURI; | |
7 import dwt.internal.mozilla.nsIChannel; | |
8 import dwt.internal.mozilla.nsStringAPI; | |
9 | |
10 const char[] NS_IPROTOCOLHANDLER_IID_STR = "15fd6940-8ea7-11d3-93ad-00104ba0fd40"; | |
11 | |
12 const nsIID NS_IPROTOCOLHANDLER_IID= | |
13 {0x15fd6940, 0x8ea7, 0x11d3, | |
14 [ 0x93, 0xad, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 ]}; | |
15 | |
16 interface nsIProtocolHandler : nsISupports { | |
17 | |
18 static const char[] IID_STR = NS_IPROTOCOLHANDLER_IID_STR; | |
19 static const nsIID IID = NS_IPROTOCOLHANDLER_IID; | |
20 | |
21 extern(System): | |
22 nsresult GetScheme(nsACString * aScheme); | |
23 nsresult GetDefaultPort(PRInt32 *aDefaultPort); | |
24 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags); | |
25 nsresult NewURI(nsACString * aSpec, char *aOriginCharset, nsIURI aBaseURI, nsIURI *_retval); | |
26 nsresult NewChannel(nsIURI aURI, nsIChannel *_retval); | |
27 nsresult AllowPort(PRInt32 port, char *scheme, PRBool *_retval); | |
28 | |
29 enum { URI_STD = 0U }; | |
30 enum { URI_NORELATIVE = 1U }; | |
31 enum { URI_NOAUTH = 2U }; | |
32 enum { ALLOWS_PROXY = 4U }; | |
33 enum { ALLOWS_PROXY_HTTP = 8U }; | |
34 | |
35 } | |
36 |