Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIApplicationCacheService.idl
3 : */
4 :
5 : #ifndef __gen_nsIApplicationCacheService_h__
6 : #define __gen_nsIApplicationCacheService_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 nsIApplicationCache; /* forward declaration */
18 :
19 : class nsIFile; /* forward declaration */
20 :
21 : class nsIURI; /* forward declaration */
22 :
23 : class nsILoadContextInfo; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIApplicationCacheService */
27 : #define NS_IAPPLICATIONCACHESERVICE_IID_STR "b8b6546c-6cec-4bda-82df-08e006a97b56"
28 :
29 : #define NS_IAPPLICATIONCACHESERVICE_IID \
30 : {0xb8b6546c, 0x6cec, 0x4bda, \
31 : { 0x82, 0xdf, 0x08, 0xe0, 0x06, 0xa9, 0x7b, 0x56 }}
32 :
33 1 : class NS_NO_VTABLE nsIApplicationCacheService : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONCACHESERVICE_IID)
37 :
38 : /* ACString buildGroupIDForInfo (in nsIURI aManifestURL, in nsILoadContextInfo aLoadContextInfo); */
39 : NS_IMETHOD BuildGroupIDForInfo(nsIURI *aManifestURL, nsILoadContextInfo *aLoadContextInfo, nsACString & _retval) = 0;
40 :
41 : /* ACString buildGroupIDForSuffix (in nsIURI aManifestURL, in ACString aOriginSuffix); */
42 : NS_IMETHOD BuildGroupIDForSuffix(nsIURI *aManifestURL, const nsACString & aOriginSuffix, nsACString & _retval) = 0;
43 :
44 : /* nsIApplicationCache createApplicationCache (in ACString group); */
45 : NS_IMETHOD CreateApplicationCache(const nsACString & group, nsIApplicationCache * *_retval) = 0;
46 :
47 : /* nsIApplicationCache createCustomApplicationCache (in ACString group, in nsIFile profileDir, in int32_t quota); */
48 : NS_IMETHOD CreateCustomApplicationCache(const nsACString & group, nsIFile *profileDir, int32_t quota, nsIApplicationCache * *_retval) = 0;
49 :
50 : /* nsIApplicationCache getApplicationCache (in ACString clientID); */
51 : NS_IMETHOD GetApplicationCache(const nsACString & clientID, nsIApplicationCache * *_retval) = 0;
52 :
53 : /* nsIApplicationCache getActiveCache (in ACString group); */
54 : NS_IMETHOD GetActiveCache(const nsACString & group, nsIApplicationCache * *_retval) = 0;
55 :
56 : /* void deactivateGroup (in ACString group); */
57 : NS_IMETHOD DeactivateGroup(const nsACString & group) = 0;
58 :
59 : /* void evict (in nsILoadContextInfo aLoadContextInfo); */
60 : NS_IMETHOD Evict(nsILoadContextInfo *aLoadContextInfo) = 0;
61 :
62 : /* void evictMatchingOriginAttributes (in AString aPattern); */
63 : NS_IMETHOD EvictMatchingOriginAttributes(const nsAString & aPattern) = 0;
64 :
65 : /* nsIApplicationCache chooseApplicationCache (in ACString key, [optional] in nsILoadContextInfo aLoadContextInfo); */
66 : NS_IMETHOD ChooseApplicationCache(const nsACString & key, nsILoadContextInfo *aLoadContextInfo, nsIApplicationCache * *_retval) = 0;
67 :
68 : /* void cacheOpportunistically (in nsIApplicationCache cache, in ACString key); */
69 : NS_IMETHOD CacheOpportunistically(nsIApplicationCache *cache, const nsACString & key) = 0;
70 :
71 : /* void getGroups ([optional] out unsigned long count, [array, size_is (count), retval] out string groupIDs); */
72 : NS_IMETHOD GetGroups(uint32_t *count, char * **groupIDs) = 0;
73 :
74 : /* void getGroupsTimeOrdered ([optional] out unsigned long count, [array, size_is (count), retval] out string groupIDs); */
75 : NS_IMETHOD GetGroupsTimeOrdered(uint32_t *count, char * **groupIDs) = 0;
76 :
77 : };
78 :
79 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationCacheService, NS_IAPPLICATIONCACHESERVICE_IID)
80 :
81 : /* Use this macro when declaring classes that implement this interface. */
82 : #define NS_DECL_NSIAPPLICATIONCACHESERVICE \
83 : NS_IMETHOD BuildGroupIDForInfo(nsIURI *aManifestURL, nsILoadContextInfo *aLoadContextInfo, nsACString & _retval) override; \
84 : NS_IMETHOD BuildGroupIDForSuffix(nsIURI *aManifestURL, const nsACString & aOriginSuffix, nsACString & _retval) override; \
85 : NS_IMETHOD CreateApplicationCache(const nsACString & group, nsIApplicationCache * *_retval) override; \
86 : NS_IMETHOD CreateCustomApplicationCache(const nsACString & group, nsIFile *profileDir, int32_t quota, nsIApplicationCache * *_retval) override; \
87 : NS_IMETHOD GetApplicationCache(const nsACString & clientID, nsIApplicationCache * *_retval) override; \
88 : NS_IMETHOD GetActiveCache(const nsACString & group, nsIApplicationCache * *_retval) override; \
89 : NS_IMETHOD DeactivateGroup(const nsACString & group) override; \
90 : NS_IMETHOD Evict(nsILoadContextInfo *aLoadContextInfo) override; \
91 : NS_IMETHOD EvictMatchingOriginAttributes(const nsAString & aPattern) override; \
92 : NS_IMETHOD ChooseApplicationCache(const nsACString & key, nsILoadContextInfo *aLoadContextInfo, nsIApplicationCache * *_retval) override; \
93 : NS_IMETHOD CacheOpportunistically(nsIApplicationCache *cache, const nsACString & key) override; \
94 : NS_IMETHOD GetGroups(uint32_t *count, char * **groupIDs) override; \
95 : NS_IMETHOD GetGroupsTimeOrdered(uint32_t *count, char * **groupIDs) override;
96 :
97 : /* Use this macro when declaring the members of this interface when the
98 : class doesn't implement the interface. This is useful for forwarding. */
99 : #define NS_DECL_NON_VIRTUAL_NSIAPPLICATIONCACHESERVICE \
100 : nsresult BuildGroupIDForInfo(nsIURI *aManifestURL, nsILoadContextInfo *aLoadContextInfo, nsACString & _retval); \
101 : nsresult BuildGroupIDForSuffix(nsIURI *aManifestURL, const nsACString & aOriginSuffix, nsACString & _retval); \
102 : nsresult CreateApplicationCache(const nsACString & group, nsIApplicationCache * *_retval); \
103 : nsresult CreateCustomApplicationCache(const nsACString & group, nsIFile *profileDir, int32_t quota, nsIApplicationCache * *_retval); \
104 : nsresult GetApplicationCache(const nsACString & clientID, nsIApplicationCache * *_retval); \
105 : nsresult GetActiveCache(const nsACString & group, nsIApplicationCache * *_retval); \
106 : nsresult DeactivateGroup(const nsACString & group); \
107 : nsresult Evict(nsILoadContextInfo *aLoadContextInfo); \
108 : nsresult EvictMatchingOriginAttributes(const nsAString & aPattern); \
109 : nsresult ChooseApplicationCache(const nsACString & key, nsILoadContextInfo *aLoadContextInfo, nsIApplicationCache * *_retval); \
110 : nsresult CacheOpportunistically(nsIApplicationCache *cache, const nsACString & key); \
111 : nsresult GetGroups(uint32_t *count, char * **groupIDs); \
112 : nsresult GetGroupsTimeOrdered(uint32_t *count, char * **groupIDs);
113 :
114 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
115 : #define NS_FORWARD_NSIAPPLICATIONCACHESERVICE(_to) \
116 : NS_IMETHOD BuildGroupIDForInfo(nsIURI *aManifestURL, nsILoadContextInfo *aLoadContextInfo, nsACString & _retval) override { return _to BuildGroupIDForInfo(aManifestURL, aLoadContextInfo, _retval); } \
117 : NS_IMETHOD BuildGroupIDForSuffix(nsIURI *aManifestURL, const nsACString & aOriginSuffix, nsACString & _retval) override { return _to BuildGroupIDForSuffix(aManifestURL, aOriginSuffix, _retval); } \
118 : NS_IMETHOD CreateApplicationCache(const nsACString & group, nsIApplicationCache * *_retval) override { return _to CreateApplicationCache(group, _retval); } \
119 : NS_IMETHOD CreateCustomApplicationCache(const nsACString & group, nsIFile *profileDir, int32_t quota, nsIApplicationCache * *_retval) override { return _to CreateCustomApplicationCache(group, profileDir, quota, _retval); } \
120 : NS_IMETHOD GetApplicationCache(const nsACString & clientID, nsIApplicationCache * *_retval) override { return _to GetApplicationCache(clientID, _retval); } \
121 : NS_IMETHOD GetActiveCache(const nsACString & group, nsIApplicationCache * *_retval) override { return _to GetActiveCache(group, _retval); } \
122 : NS_IMETHOD DeactivateGroup(const nsACString & group) override { return _to DeactivateGroup(group); } \
123 : NS_IMETHOD Evict(nsILoadContextInfo *aLoadContextInfo) override { return _to Evict(aLoadContextInfo); } \
124 : NS_IMETHOD EvictMatchingOriginAttributes(const nsAString & aPattern) override { return _to EvictMatchingOriginAttributes(aPattern); } \
125 : NS_IMETHOD ChooseApplicationCache(const nsACString & key, nsILoadContextInfo *aLoadContextInfo, nsIApplicationCache * *_retval) override { return _to ChooseApplicationCache(key, aLoadContextInfo, _retval); } \
126 : NS_IMETHOD CacheOpportunistically(nsIApplicationCache *cache, const nsACString & key) override { return _to CacheOpportunistically(cache, key); } \
127 : NS_IMETHOD GetGroups(uint32_t *count, char * **groupIDs) override { return _to GetGroups(count, groupIDs); } \
128 : NS_IMETHOD GetGroupsTimeOrdered(uint32_t *count, char * **groupIDs) override { return _to GetGroupsTimeOrdered(count, groupIDs); }
129 :
130 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
131 : #define NS_FORWARD_SAFE_NSIAPPLICATIONCACHESERVICE(_to) \
132 : NS_IMETHOD BuildGroupIDForInfo(nsIURI *aManifestURL, nsILoadContextInfo *aLoadContextInfo, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BuildGroupIDForInfo(aManifestURL, aLoadContextInfo, _retval); } \
133 : NS_IMETHOD BuildGroupIDForSuffix(nsIURI *aManifestURL, const nsACString & aOriginSuffix, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BuildGroupIDForSuffix(aManifestURL, aOriginSuffix, _retval); } \
134 : NS_IMETHOD CreateApplicationCache(const nsACString & group, nsIApplicationCache * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateApplicationCache(group, _retval); } \
135 : NS_IMETHOD CreateCustomApplicationCache(const nsACString & group, nsIFile *profileDir, int32_t quota, nsIApplicationCache * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateCustomApplicationCache(group, profileDir, quota, _retval); } \
136 : NS_IMETHOD GetApplicationCache(const nsACString & clientID, nsIApplicationCache * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplicationCache(clientID, _retval); } \
137 : NS_IMETHOD GetActiveCache(const nsACString & group, nsIApplicationCache * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveCache(group, _retval); } \
138 : NS_IMETHOD DeactivateGroup(const nsACString & group) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeactivateGroup(group); } \
139 : NS_IMETHOD Evict(nsILoadContextInfo *aLoadContextInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Evict(aLoadContextInfo); } \
140 : NS_IMETHOD EvictMatchingOriginAttributes(const nsAString & aPattern) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EvictMatchingOriginAttributes(aPattern); } \
141 : NS_IMETHOD ChooseApplicationCache(const nsACString & key, nsILoadContextInfo *aLoadContextInfo, nsIApplicationCache * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ChooseApplicationCache(key, aLoadContextInfo, _retval); } \
142 : NS_IMETHOD CacheOpportunistically(nsIApplicationCache *cache, const nsACString & key) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CacheOpportunistically(cache, key); } \
143 : NS_IMETHOD GetGroups(uint32_t *count, char * **groupIDs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroups(count, groupIDs); } \
144 : NS_IMETHOD GetGroupsTimeOrdered(uint32_t *count, char * **groupIDs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupsTimeOrdered(count, groupIDs); }
145 :
146 : #if 0
147 : /* Use the code below as a template for the implementation class for this interface. */
148 :
149 : /* Header file */
150 : class nsApplicationCacheService : public nsIApplicationCacheService
151 : {
152 : public:
153 : NS_DECL_ISUPPORTS
154 : NS_DECL_NSIAPPLICATIONCACHESERVICE
155 :
156 : nsApplicationCacheService();
157 :
158 : private:
159 : ~nsApplicationCacheService();
160 :
161 : protected:
162 : /* additional members */
163 : };
164 :
165 : /* Implementation file */
166 : NS_IMPL_ISUPPORTS(nsApplicationCacheService, nsIApplicationCacheService)
167 :
168 : nsApplicationCacheService::nsApplicationCacheService()
169 : {
170 : /* member initializers and constructor code */
171 : }
172 :
173 : nsApplicationCacheService::~nsApplicationCacheService()
174 : {
175 : /* destructor code */
176 : }
177 :
178 : /* ACString buildGroupIDForInfo (in nsIURI aManifestURL, in nsILoadContextInfo aLoadContextInfo); */
179 : NS_IMETHODIMP nsApplicationCacheService::BuildGroupIDForInfo(nsIURI *aManifestURL, nsILoadContextInfo *aLoadContextInfo, nsACString & _retval)
180 : {
181 : return NS_ERROR_NOT_IMPLEMENTED;
182 : }
183 :
184 : /* ACString buildGroupIDForSuffix (in nsIURI aManifestURL, in ACString aOriginSuffix); */
185 : NS_IMETHODIMP nsApplicationCacheService::BuildGroupIDForSuffix(nsIURI *aManifestURL, const nsACString & aOriginSuffix, nsACString & _retval)
186 : {
187 : return NS_ERROR_NOT_IMPLEMENTED;
188 : }
189 :
190 : /* nsIApplicationCache createApplicationCache (in ACString group); */
191 : NS_IMETHODIMP nsApplicationCacheService::CreateApplicationCache(const nsACString & group, nsIApplicationCache * *_retval)
192 : {
193 : return NS_ERROR_NOT_IMPLEMENTED;
194 : }
195 :
196 : /* nsIApplicationCache createCustomApplicationCache (in ACString group, in nsIFile profileDir, in int32_t quota); */
197 : NS_IMETHODIMP nsApplicationCacheService::CreateCustomApplicationCache(const nsACString & group, nsIFile *profileDir, int32_t quota, nsIApplicationCache * *_retval)
198 : {
199 : return NS_ERROR_NOT_IMPLEMENTED;
200 : }
201 :
202 : /* nsIApplicationCache getApplicationCache (in ACString clientID); */
203 : NS_IMETHODIMP nsApplicationCacheService::GetApplicationCache(const nsACString & clientID, nsIApplicationCache * *_retval)
204 : {
205 : return NS_ERROR_NOT_IMPLEMENTED;
206 : }
207 :
208 : /* nsIApplicationCache getActiveCache (in ACString group); */
209 : NS_IMETHODIMP nsApplicationCacheService::GetActiveCache(const nsACString & group, nsIApplicationCache * *_retval)
210 : {
211 : return NS_ERROR_NOT_IMPLEMENTED;
212 : }
213 :
214 : /* void deactivateGroup (in ACString group); */
215 : NS_IMETHODIMP nsApplicationCacheService::DeactivateGroup(const nsACString & group)
216 : {
217 : return NS_ERROR_NOT_IMPLEMENTED;
218 : }
219 :
220 : /* void evict (in nsILoadContextInfo aLoadContextInfo); */
221 : NS_IMETHODIMP nsApplicationCacheService::Evict(nsILoadContextInfo *aLoadContextInfo)
222 : {
223 : return NS_ERROR_NOT_IMPLEMENTED;
224 : }
225 :
226 : /* void evictMatchingOriginAttributes (in AString aPattern); */
227 : NS_IMETHODIMP nsApplicationCacheService::EvictMatchingOriginAttributes(const nsAString & aPattern)
228 : {
229 : return NS_ERROR_NOT_IMPLEMENTED;
230 : }
231 :
232 : /* nsIApplicationCache chooseApplicationCache (in ACString key, [optional] in nsILoadContextInfo aLoadContextInfo); */
233 : NS_IMETHODIMP nsApplicationCacheService::ChooseApplicationCache(const nsACString & key, nsILoadContextInfo *aLoadContextInfo, nsIApplicationCache * *_retval)
234 : {
235 : return NS_ERROR_NOT_IMPLEMENTED;
236 : }
237 :
238 : /* void cacheOpportunistically (in nsIApplicationCache cache, in ACString key); */
239 : NS_IMETHODIMP nsApplicationCacheService::CacheOpportunistically(nsIApplicationCache *cache, const nsACString & key)
240 : {
241 : return NS_ERROR_NOT_IMPLEMENTED;
242 : }
243 :
244 : /* void getGroups ([optional] out unsigned long count, [array, size_is (count), retval] out string groupIDs); */
245 : NS_IMETHODIMP nsApplicationCacheService::GetGroups(uint32_t *count, char * **groupIDs)
246 : {
247 : return NS_ERROR_NOT_IMPLEMENTED;
248 : }
249 :
250 : /* void getGroupsTimeOrdered ([optional] out unsigned long count, [array, size_is (count), retval] out string groupIDs); */
251 : NS_IMETHODIMP nsApplicationCacheService::GetGroupsTimeOrdered(uint32_t *count, char * **groupIDs)
252 : {
253 : return NS_ERROR_NOT_IMPLEMENTED;
254 : }
255 :
256 : /* End of implementation class template. */
257 : #endif
258 :
259 :
260 : #endif /* __gen_nsIApplicationCacheService_h__ */
|