OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ |
6 #define WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // This method always completes asynchronously. | 71 // This method always completes asynchronously. |
72 void CanHandleMainResourceOffline(const GURL& url, | 72 void CanHandleMainResourceOffline(const GURL& url, |
73 const GURL& first_party, | 73 const GURL& first_party, |
74 const net::CompletionCallback& callback); | 74 const net::CompletionCallback& callback); |
75 | 75 |
76 // Populates 'collection' with info about all of the appcaches stored | 76 // Populates 'collection' with info about all of the appcaches stored |
77 // within the service, 'callback' is invoked upon completion. The service | 77 // within the service, 'callback' is invoked upon completion. The service |
78 // acquires a reference to the 'collection' until until completion. | 78 // acquires a reference to the 'collection' until until completion. |
79 // This method always completes asynchronously. | 79 // This method always completes asynchronously. |
80 void GetAllAppCacheInfo(AppCacheInfoCollection* collection, | 80 void GetAllAppCacheInfo(AppCacheInfoCollection* collection, |
81 net::OldCompletionCallback* callback); | 81 const net::CompletionCallback& callback); |
82 | 82 |
83 // Deletes the group identified by 'manifest_url', 'callback' is | 83 // Deletes the group identified by 'manifest_url', 'callback' is |
84 // invoked upon completion. Upon completion, the cache group and | 84 // invoked upon completion. Upon completion, the cache group and |
85 // any resources within the group are no longer loadable and all | 85 // any resources within the group are no longer loadable and all |
86 // subresource loads for pages associated with a deleted group | 86 // subresource loads for pages associated with a deleted group |
87 // will fail. This method always completes asynchronously. | 87 // will fail. This method always completes asynchronously. |
88 void DeleteAppCacheGroup(const GURL& manifest_url, | 88 void DeleteAppCacheGroup(const GURL& manifest_url, |
89 net::OldCompletionCallback* callback); | 89 net::OldCompletionCallback* callback); |
90 | 90 |
91 // Deletes all appcaches for the origin, 'callback' is invoked upon | 91 // Deletes all appcaches for the origin, 'callback' is invoked upon |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // Context for use during cache updates. | 171 // Context for use during cache updates. |
172 net::URLRequestContext* request_context_; | 172 net::URLRequestContext* request_context_; |
173 bool clear_local_state_on_exit_; | 173 bool clear_local_state_on_exit_; |
174 | 174 |
175 DISALLOW_COPY_AND_ASSIGN(AppCacheService); | 175 DISALLOW_COPY_AND_ASSIGN(AppCacheService); |
176 }; | 176 }; |
177 | 177 |
178 } // namespace appcache | 178 } // namespace appcache |
179 | 179 |
180 #endif // WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ | 180 #endif // WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ |
OLD | NEW |