Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/mozilla/nsIProtocolHandler.d @ 0:6dd524f61e62
add dwt win and basic java stuff
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 02 Mar 2009 14:44:16 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6dd524f61e62 |
---|---|
1 module org.eclipse.swt.internal.mozilla.nsIProtocolHandler; | |
2 | |
3 import org.eclipse.swt.internal.mozilla.Common; | |
4 import org.eclipse.swt.internal.mozilla.nsISupports; | |
5 import org.eclipse.swt.internal.mozilla.nsID; | |
6 import org.eclipse.swt.internal.mozilla.nsIURI; | |
7 import org.eclipse.swt.internal.mozilla.nsIChannel; | |
8 import org.eclipse.swt.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 |