Mercurial > projects > dwt-win
comparison dwt/internal/mozilla/nsICookie.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.nsICookie; | |
2 | |
3 import dwt.internal.mozilla.Common; | |
4 import dwt.internal.mozilla.nsID; | |
5 import dwt.internal.mozilla.nsISupports; | |
6 import dwt.internal.mozilla.nsStringAPI; | |
7 | |
8 alias PRInt32 nsCookieStatus; | |
9 alias PRInt32 nsCookiePolicy; | |
10 | |
11 const char[] NS_ICOOKIE_IID_STR = "e9fcb9a4-d376-458f-b720-e65e7df593bc"; | |
12 | |
13 const nsIID NS_ICOOKIE_IID= | |
14 {0xe9fcb9a4, 0xd376, 0x458f, | |
15 [ 0xb7, 0x20, 0xe6, 0x5e, 0x7d, 0xf5, 0x93, 0xbc ]}; | |
16 | |
17 interface nsICookie : nsISupports { | |
18 | |
19 static const char[] IID_STR = NS_ICOOKIE_IID_STR; | |
20 static const nsIID IID = NS_ICOOKIE_IID; | |
21 | |
22 extern(System): | |
23 nsresult GetName(nsACString * aName); | |
24 nsresult GetValue(nsACString * aValue); | |
25 nsresult GetIsDomain(PRBool *aIsDomain); | |
26 nsresult GetHost(nsACString * aHost); | |
27 nsresult GetPath(nsACString * aPath); | |
28 nsresult GetIsSecure(PRBool *aIsSecure); | |
29 nsresult GetExpires(PRUint64 *aExpires); | |
30 | |
31 enum { STATUS_UNKNOWN = 0 }; | |
32 enum { STATUS_ACCEPTED = 1 }; | |
33 enum { STATUS_DOWNGRADED = 2 }; | |
34 enum { STATUS_FLAGGED = 3 }; | |
35 enum { STATUS_REJECTED = 4 }; | |
36 | |
37 nsresult GetStatus(nsCookieStatus *aStatus); | |
38 | |
39 enum { POLICY_UNKNOWN = 0 }; | |
40 enum { POLICY_NONE = 1 }; | |
41 enum { POLICY_NO_CONSENT = 2 }; | |
42 enum { POLICY_IMPLICIT_CONSENT = 3 }; | |
43 enum { POLICY_EXPLICIT_CONSENT = 4 }; | |
44 enum { POLICY_NO_II = 5 }; | |
45 | |
46 nsresult GetPolicy(nsCookiePolicy *aPolicy); | |
47 } | |
48 |