1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/cookie/nsICookie2.idl
3 : */
4 :
5 : #ifndef __gen_nsICookie2_h__
6 : #define __gen_nsICookie2_h__
7 :
8 :
9 : #ifndef __gen_nsICookie_h__
10 : #include "nsICookie.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 :
18 : /* starting interface: nsICookie2 */
19 : #define NS_ICOOKIE2_IID_STR "05c420e5-03d0-4c7b-a605-df7ebe5ca326"
20 :
21 : #define NS_ICOOKIE2_IID \
22 : {0x05c420e5, 0x03d0, 0x4c7b, \
23 : { 0xa6, 0x05, 0xdf, 0x7e, 0xbe, 0x5c, 0xa3, 0x26 }}
24 :
25 41965 : class NS_NO_VTABLE NS_SCRIPTABLE nsICookie2 : public nsICookie {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOOKIE2_IID)
29 :
30 : /* readonly attribute AUTF8String rawHost; */
31 : NS_SCRIPTABLE NS_IMETHOD GetRawHost(nsACString & aRawHost) = 0;
32 :
33 : /* readonly attribute boolean isSession; */
34 : NS_SCRIPTABLE NS_IMETHOD GetIsSession(bool *aIsSession) = 0;
35 :
36 : /* readonly attribute PRInt64 expiry; */
37 : NS_SCRIPTABLE NS_IMETHOD GetExpiry(PRInt64 *aExpiry) = 0;
38 :
39 : /* readonly attribute boolean isHttpOnly; */
40 : NS_SCRIPTABLE NS_IMETHOD GetIsHttpOnly(bool *aIsHttpOnly) = 0;
41 :
42 : /* readonly attribute PRInt64 creationTime; */
43 : NS_SCRIPTABLE NS_IMETHOD GetCreationTime(PRInt64 *aCreationTime) = 0;
44 :
45 : /* readonly attribute PRInt64 lastAccessed; */
46 : NS_SCRIPTABLE NS_IMETHOD GetLastAccessed(PRInt64 *aLastAccessed) = 0;
47 :
48 : };
49 :
50 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICookie2, NS_ICOOKIE2_IID)
51 :
52 : /* Use this macro when declaring classes that implement this interface. */
53 : #define NS_DECL_NSICOOKIE2 \
54 : NS_SCRIPTABLE NS_IMETHOD GetRawHost(nsACString & aRawHost); \
55 : NS_SCRIPTABLE NS_IMETHOD GetIsSession(bool *aIsSession); \
56 : NS_SCRIPTABLE NS_IMETHOD GetExpiry(PRInt64 *aExpiry); \
57 : NS_SCRIPTABLE NS_IMETHOD GetIsHttpOnly(bool *aIsHttpOnly); \
58 : NS_SCRIPTABLE NS_IMETHOD GetCreationTime(PRInt64 *aCreationTime); \
59 : NS_SCRIPTABLE NS_IMETHOD GetLastAccessed(PRInt64 *aLastAccessed);
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
62 : #define NS_FORWARD_NSICOOKIE2(_to) \
63 : NS_SCRIPTABLE NS_IMETHOD GetRawHost(nsACString & aRawHost) { return _to GetRawHost(aRawHost); } \
64 : NS_SCRIPTABLE NS_IMETHOD GetIsSession(bool *aIsSession) { return _to GetIsSession(aIsSession); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetExpiry(PRInt64 *aExpiry) { return _to GetExpiry(aExpiry); } \
66 : NS_SCRIPTABLE NS_IMETHOD GetIsHttpOnly(bool *aIsHttpOnly) { return _to GetIsHttpOnly(aIsHttpOnly); } \
67 : NS_SCRIPTABLE NS_IMETHOD GetCreationTime(PRInt64 *aCreationTime) { return _to GetCreationTime(aCreationTime); } \
68 : NS_SCRIPTABLE NS_IMETHOD GetLastAccessed(PRInt64 *aLastAccessed) { return _to GetLastAccessed(aLastAccessed); }
69 :
70 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
71 : #define NS_FORWARD_SAFE_NSICOOKIE2(_to) \
72 : NS_SCRIPTABLE NS_IMETHOD GetRawHost(nsACString & aRawHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRawHost(aRawHost); } \
73 : NS_SCRIPTABLE NS_IMETHOD GetIsSession(bool *aIsSession) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSession(aIsSession); } \
74 : NS_SCRIPTABLE NS_IMETHOD GetExpiry(PRInt64 *aExpiry) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpiry(aExpiry); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetIsHttpOnly(bool *aIsHttpOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHttpOnly(aIsHttpOnly); } \
76 : NS_SCRIPTABLE NS_IMETHOD GetCreationTime(PRInt64 *aCreationTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCreationTime(aCreationTime); } \
77 : NS_SCRIPTABLE NS_IMETHOD GetLastAccessed(PRInt64 *aLastAccessed) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastAccessed(aLastAccessed); }
78 :
79 : #if 0
80 : /* Use the code below as a template for the implementation class for this interface. */
81 :
82 : /* Header file */
83 : class nsCookie2 : public nsICookie2
84 : {
85 : public:
86 : NS_DECL_ISUPPORTS
87 : NS_DECL_NSICOOKIE2
88 :
89 : nsCookie2();
90 :
91 : private:
92 : ~nsCookie2();
93 :
94 : protected:
95 : /* additional members */
96 : };
97 :
98 : /* Implementation file */
99 : NS_IMPL_ISUPPORTS1(nsCookie2, nsICookie2)
100 :
101 : nsCookie2::nsCookie2()
102 : {
103 : /* member initializers and constructor code */
104 : }
105 :
106 : nsCookie2::~nsCookie2()
107 : {
108 : /* destructor code */
109 : }
110 :
111 : /* readonly attribute AUTF8String rawHost; */
112 : NS_IMETHODIMP nsCookie2::GetRawHost(nsACString & aRawHost)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* readonly attribute boolean isSession; */
118 : NS_IMETHODIMP nsCookie2::GetIsSession(bool *aIsSession)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* readonly attribute PRInt64 expiry; */
124 : NS_IMETHODIMP nsCookie2::GetExpiry(PRInt64 *aExpiry)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* readonly attribute boolean isHttpOnly; */
130 : NS_IMETHODIMP nsCookie2::GetIsHttpOnly(bool *aIsHttpOnly)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* readonly attribute PRInt64 creationTime; */
136 : NS_IMETHODIMP nsCookie2::GetCreationTime(PRInt64 *aCreationTime)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* readonly attribute PRInt64 lastAccessed; */
142 : NS_IMETHODIMP nsCookie2::GetLastAccessed(PRInt64 *aLastAccessed)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* End of implementation class template. */
148 : #endif
149 :
150 :
151 : #endif /* __gen_nsICookie2_h__ */
|