Mercurial > projects > dwt-linux
comparison dwt/internal/mozilla/nsIProtocolHandler.d @ 291:b0bd1789106b
fix: added wrong directory :(
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Wed, 06 Aug 2008 18:29:44 -0700 |
parents | dd63eb078d7a |
children | 942da4b6558a |
comparison
equal
deleted
inserted
replaced
290:4c1340edee0d | 291:b0bd1789106b |
---|---|
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 extern(System) | |
17 | |
18 interface nsIProtocolHandler : nsISupports { | |
19 | |
20 static const char[] IID_STR = NS_IPROTOCOLHANDLER_IID_STR; | |
21 static const nsIID IID = NS_IPROTOCOLHANDLER_IID; | |
22 | |
23 nsresult GetScheme(nsACString * aScheme); | |
24 nsresult GetDefaultPort(PRInt32 *aDefaultPort); | |
25 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags); | |
26 nsresult NewURI(nsACString * aSpec, char *aOriginCharset, nsIURI aBaseURI, nsIURI *_retval); | |
27 nsresult NewChannel(nsIURI aURI, nsIChannel *_retval); | |
28 nsresult AllowPort(PRInt32 port, char *scheme, PRBool *_retval); | |
29 | |
30 enum { URI_STD = 0U }; | |
31 enum { URI_NORELATIVE = 1U }; | |
32 enum { URI_NOAUTH = 2U }; | |
33 enum { ALLOWS_PROXY = 4U }; | |
34 enum { ALLOWS_PROXY_HTTP = 8U }; | |
35 | |
36 } | |
37 |