Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsICacheInfoChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsICacheInfoChannel_h__
6 : #define __gen_nsICacheInfoChannel_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.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 : class nsIOutputStream; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsICacheInfoChannel */
21 : #define NS_ICACHEINFOCHANNEL_IID_STR "72c34415-c6eb-48af-851f-772fa9ee5972"
22 :
23 : #define NS_ICACHEINFOCHANNEL_IID \
24 : {0x72c34415, 0xc6eb, 0x48af, \
25 : { 0x85, 0x1f, 0x77, 0x2f, 0xa9, 0xee, 0x59, 0x72 }}
26 :
27 10 : class NS_NO_VTABLE nsICacheInfoChannel : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEINFOCHANNEL_IID)
31 :
32 : /* readonly attribute int32_t cacheTokenFetchCount; */
33 : NS_IMETHOD GetCacheTokenFetchCount(int32_t *aCacheTokenFetchCount) = 0;
34 :
35 : /* readonly attribute uint32_t cacheTokenLastFetched; */
36 : NS_IMETHOD GetCacheTokenLastFetched(uint32_t *aCacheTokenLastFetched) = 0;
37 :
38 : /* readonly attribute uint32_t cacheTokenExpirationTime; */
39 : NS_IMETHOD GetCacheTokenExpirationTime(uint32_t *aCacheTokenExpirationTime) = 0;
40 :
41 : /* attribute ACString cacheTokenCachedCharset; */
42 : NS_IMETHOD GetCacheTokenCachedCharset(nsACString & aCacheTokenCachedCharset) = 0;
43 : NS_IMETHOD SetCacheTokenCachedCharset(const nsACString & aCacheTokenCachedCharset) = 0;
44 :
45 : /* boolean isFromCache (); */
46 : NS_IMETHOD IsFromCache(bool *_retval) = 0;
47 :
48 : /* attribute nsISupports cacheKey; */
49 : NS_IMETHOD GetCacheKey(nsISupports * *aCacheKey) = 0;
50 : NS_IMETHOD SetCacheKey(nsISupports *aCacheKey) = 0;
51 :
52 : /* attribute boolean allowStaleCacheContent; */
53 : NS_IMETHOD GetAllowStaleCacheContent(bool *aAllowStaleCacheContent) = 0;
54 : NS_IMETHOD SetAllowStaleCacheContent(bool aAllowStaleCacheContent) = 0;
55 :
56 : /* void preferAlternativeDataType (in ACString type); */
57 : NS_IMETHOD PreferAlternativeDataType(const nsACString & type) = 0;
58 :
59 : /* readonly attribute ACString alternativeDataType; */
60 : NS_IMETHOD GetAlternativeDataType(nsACString & aAlternativeDataType) = 0;
61 :
62 : /* nsIOutputStream openAlternativeOutputStream (in ACString type); */
63 : NS_IMETHOD OpenAlternativeOutputStream(const nsACString & type, nsIOutputStream * *_retval) = 0;
64 :
65 : };
66 :
67 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheInfoChannel, NS_ICACHEINFOCHANNEL_IID)
68 :
69 : /* Use this macro when declaring classes that implement this interface. */
70 : #define NS_DECL_NSICACHEINFOCHANNEL \
71 : NS_IMETHOD GetCacheTokenFetchCount(int32_t *aCacheTokenFetchCount) override; \
72 : NS_IMETHOD GetCacheTokenLastFetched(uint32_t *aCacheTokenLastFetched) override; \
73 : NS_IMETHOD GetCacheTokenExpirationTime(uint32_t *aCacheTokenExpirationTime) override; \
74 : NS_IMETHOD GetCacheTokenCachedCharset(nsACString & aCacheTokenCachedCharset) override; \
75 : NS_IMETHOD SetCacheTokenCachedCharset(const nsACString & aCacheTokenCachedCharset) override; \
76 : NS_IMETHOD IsFromCache(bool *_retval) override; \
77 : NS_IMETHOD GetCacheKey(nsISupports * *aCacheKey) override; \
78 : NS_IMETHOD SetCacheKey(nsISupports *aCacheKey) override; \
79 : NS_IMETHOD GetAllowStaleCacheContent(bool *aAllowStaleCacheContent) override; \
80 : NS_IMETHOD SetAllowStaleCacheContent(bool aAllowStaleCacheContent) override; \
81 : NS_IMETHOD PreferAlternativeDataType(const nsACString & type) override; \
82 : NS_IMETHOD GetAlternativeDataType(nsACString & aAlternativeDataType) override; \
83 : NS_IMETHOD OpenAlternativeOutputStream(const nsACString & type, nsIOutputStream * *_retval) override;
84 :
85 : /* Use this macro when declaring the members of this interface when the
86 : class doesn't implement the interface. This is useful for forwarding. */
87 : #define NS_DECL_NON_VIRTUAL_NSICACHEINFOCHANNEL \
88 : nsresult GetCacheTokenFetchCount(int32_t *aCacheTokenFetchCount); \
89 : nsresult GetCacheTokenLastFetched(uint32_t *aCacheTokenLastFetched); \
90 : nsresult GetCacheTokenExpirationTime(uint32_t *aCacheTokenExpirationTime); \
91 : nsresult GetCacheTokenCachedCharset(nsACString & aCacheTokenCachedCharset); \
92 : nsresult SetCacheTokenCachedCharset(const nsACString & aCacheTokenCachedCharset); \
93 : nsresult IsFromCache(bool *_retval); \
94 : nsresult GetCacheKey(nsISupports * *aCacheKey); \
95 : nsresult SetCacheKey(nsISupports *aCacheKey); \
96 : nsresult GetAllowStaleCacheContent(bool *aAllowStaleCacheContent); \
97 : nsresult SetAllowStaleCacheContent(bool aAllowStaleCacheContent); \
98 : nsresult PreferAlternativeDataType(const nsACString & type); \
99 : nsresult GetAlternativeDataType(nsACString & aAlternativeDataType); \
100 : nsresult OpenAlternativeOutputStream(const nsACString & type, nsIOutputStream * *_retval);
101 :
102 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
103 : #define NS_FORWARD_NSICACHEINFOCHANNEL(_to) \
104 : NS_IMETHOD GetCacheTokenFetchCount(int32_t *aCacheTokenFetchCount) override { return _to GetCacheTokenFetchCount(aCacheTokenFetchCount); } \
105 : NS_IMETHOD GetCacheTokenLastFetched(uint32_t *aCacheTokenLastFetched) override { return _to GetCacheTokenLastFetched(aCacheTokenLastFetched); } \
106 : NS_IMETHOD GetCacheTokenExpirationTime(uint32_t *aCacheTokenExpirationTime) override { return _to GetCacheTokenExpirationTime(aCacheTokenExpirationTime); } \
107 : NS_IMETHOD GetCacheTokenCachedCharset(nsACString & aCacheTokenCachedCharset) override { return _to GetCacheTokenCachedCharset(aCacheTokenCachedCharset); } \
108 : NS_IMETHOD SetCacheTokenCachedCharset(const nsACString & aCacheTokenCachedCharset) override { return _to SetCacheTokenCachedCharset(aCacheTokenCachedCharset); } \
109 : NS_IMETHOD IsFromCache(bool *_retval) override { return _to IsFromCache(_retval); } \
110 : NS_IMETHOD GetCacheKey(nsISupports * *aCacheKey) override { return _to GetCacheKey(aCacheKey); } \
111 : NS_IMETHOD SetCacheKey(nsISupports *aCacheKey) override { return _to SetCacheKey(aCacheKey); } \
112 : NS_IMETHOD GetAllowStaleCacheContent(bool *aAllowStaleCacheContent) override { return _to GetAllowStaleCacheContent(aAllowStaleCacheContent); } \
113 : NS_IMETHOD SetAllowStaleCacheContent(bool aAllowStaleCacheContent) override { return _to SetAllowStaleCacheContent(aAllowStaleCacheContent); } \
114 : NS_IMETHOD PreferAlternativeDataType(const nsACString & type) override { return _to PreferAlternativeDataType(type); } \
115 : NS_IMETHOD GetAlternativeDataType(nsACString & aAlternativeDataType) override { return _to GetAlternativeDataType(aAlternativeDataType); } \
116 : NS_IMETHOD OpenAlternativeOutputStream(const nsACString & type, nsIOutputStream * *_retval) override { return _to OpenAlternativeOutputStream(type, _retval); }
117 :
118 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
119 : #define NS_FORWARD_SAFE_NSICACHEINFOCHANNEL(_to) \
120 : NS_IMETHOD GetCacheTokenFetchCount(int32_t *aCacheTokenFetchCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheTokenFetchCount(aCacheTokenFetchCount); } \
121 : NS_IMETHOD GetCacheTokenLastFetched(uint32_t *aCacheTokenLastFetched) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheTokenLastFetched(aCacheTokenLastFetched); } \
122 : NS_IMETHOD GetCacheTokenExpirationTime(uint32_t *aCacheTokenExpirationTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheTokenExpirationTime(aCacheTokenExpirationTime); } \
123 : NS_IMETHOD GetCacheTokenCachedCharset(nsACString & aCacheTokenCachedCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheTokenCachedCharset(aCacheTokenCachedCharset); } \
124 : NS_IMETHOD SetCacheTokenCachedCharset(const nsACString & aCacheTokenCachedCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCacheTokenCachedCharset(aCacheTokenCachedCharset); } \
125 : NS_IMETHOD IsFromCache(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsFromCache(_retval); } \
126 : NS_IMETHOD GetCacheKey(nsISupports * *aCacheKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheKey(aCacheKey); } \
127 : NS_IMETHOD SetCacheKey(nsISupports *aCacheKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCacheKey(aCacheKey); } \
128 : NS_IMETHOD GetAllowStaleCacheContent(bool *aAllowStaleCacheContent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowStaleCacheContent(aAllowStaleCacheContent); } \
129 : NS_IMETHOD SetAllowStaleCacheContent(bool aAllowStaleCacheContent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowStaleCacheContent(aAllowStaleCacheContent); } \
130 : NS_IMETHOD PreferAlternativeDataType(const nsACString & type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PreferAlternativeDataType(type); } \
131 : NS_IMETHOD GetAlternativeDataType(nsACString & aAlternativeDataType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlternativeDataType(aAlternativeDataType); } \
132 : NS_IMETHOD OpenAlternativeOutputStream(const nsACString & type, nsIOutputStream * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenAlternativeOutputStream(type, _retval); }
133 :
134 : #if 0
135 : /* Use the code below as a template for the implementation class for this interface. */
136 :
137 : /* Header file */
138 : class nsCacheInfoChannel : public nsICacheInfoChannel
139 : {
140 : public:
141 : NS_DECL_ISUPPORTS
142 : NS_DECL_NSICACHEINFOCHANNEL
143 :
144 : nsCacheInfoChannel();
145 :
146 : private:
147 : ~nsCacheInfoChannel();
148 :
149 : protected:
150 : /* additional members */
151 : };
152 :
153 : /* Implementation file */
154 : NS_IMPL_ISUPPORTS(nsCacheInfoChannel, nsICacheInfoChannel)
155 :
156 : nsCacheInfoChannel::nsCacheInfoChannel()
157 : {
158 : /* member initializers and constructor code */
159 : }
160 :
161 : nsCacheInfoChannel::~nsCacheInfoChannel()
162 : {
163 : /* destructor code */
164 : }
165 :
166 : /* readonly attribute int32_t cacheTokenFetchCount; */
167 : NS_IMETHODIMP nsCacheInfoChannel::GetCacheTokenFetchCount(int32_t *aCacheTokenFetchCount)
168 : {
169 : return NS_ERROR_NOT_IMPLEMENTED;
170 : }
171 :
172 : /* readonly attribute uint32_t cacheTokenLastFetched; */
173 : NS_IMETHODIMP nsCacheInfoChannel::GetCacheTokenLastFetched(uint32_t *aCacheTokenLastFetched)
174 : {
175 : return NS_ERROR_NOT_IMPLEMENTED;
176 : }
177 :
178 : /* readonly attribute uint32_t cacheTokenExpirationTime; */
179 : NS_IMETHODIMP nsCacheInfoChannel::GetCacheTokenExpirationTime(uint32_t *aCacheTokenExpirationTime)
180 : {
181 : return NS_ERROR_NOT_IMPLEMENTED;
182 : }
183 :
184 : /* attribute ACString cacheTokenCachedCharset; */
185 : NS_IMETHODIMP nsCacheInfoChannel::GetCacheTokenCachedCharset(nsACString & aCacheTokenCachedCharset)
186 : {
187 : return NS_ERROR_NOT_IMPLEMENTED;
188 : }
189 : NS_IMETHODIMP nsCacheInfoChannel::SetCacheTokenCachedCharset(const nsACString & aCacheTokenCachedCharset)
190 : {
191 : return NS_ERROR_NOT_IMPLEMENTED;
192 : }
193 :
194 : /* boolean isFromCache (); */
195 : NS_IMETHODIMP nsCacheInfoChannel::IsFromCache(bool *_retval)
196 : {
197 : return NS_ERROR_NOT_IMPLEMENTED;
198 : }
199 :
200 : /* attribute nsISupports cacheKey; */
201 : NS_IMETHODIMP nsCacheInfoChannel::GetCacheKey(nsISupports * *aCacheKey)
202 : {
203 : return NS_ERROR_NOT_IMPLEMENTED;
204 : }
205 : NS_IMETHODIMP nsCacheInfoChannel::SetCacheKey(nsISupports *aCacheKey)
206 : {
207 : return NS_ERROR_NOT_IMPLEMENTED;
208 : }
209 :
210 : /* attribute boolean allowStaleCacheContent; */
211 : NS_IMETHODIMP nsCacheInfoChannel::GetAllowStaleCacheContent(bool *aAllowStaleCacheContent)
212 : {
213 : return NS_ERROR_NOT_IMPLEMENTED;
214 : }
215 : NS_IMETHODIMP nsCacheInfoChannel::SetAllowStaleCacheContent(bool aAllowStaleCacheContent)
216 : {
217 : return NS_ERROR_NOT_IMPLEMENTED;
218 : }
219 :
220 : /* void preferAlternativeDataType (in ACString type); */
221 : NS_IMETHODIMP nsCacheInfoChannel::PreferAlternativeDataType(const nsACString & type)
222 : {
223 : return NS_ERROR_NOT_IMPLEMENTED;
224 : }
225 :
226 : /* readonly attribute ACString alternativeDataType; */
227 : NS_IMETHODIMP nsCacheInfoChannel::GetAlternativeDataType(nsACString & aAlternativeDataType)
228 : {
229 : return NS_ERROR_NOT_IMPLEMENTED;
230 : }
231 :
232 : /* nsIOutputStream openAlternativeOutputStream (in ACString type); */
233 : NS_IMETHODIMP nsCacheInfoChannel::OpenAlternativeOutputStream(const nsACString & type, nsIOutputStream * *_retval)
234 : {
235 : return NS_ERROR_NOT_IMPLEMENTED;
236 : }
237 :
238 : /* End of implementation class template. */
239 : #endif
240 :
241 :
242 : #endif /* __gen_nsICacheInfoChannel_h__ */
|