Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: webkit/appcache/appcache_service.h

Issue 8775034: base::Bind: Convert AppCacheHelper::DeleteAppCacheGroup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browsing_data_appcache_helper.cc ('k') | webkit/appcache/appcache_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // This method always completes asynchronously. 79 // This method always completes asynchronously.
80 void GetAllAppCacheInfo(AppCacheInfoCollection* collection, 80 void GetAllAppCacheInfo(AppCacheInfoCollection* collection,
81 const net::CompletionCallback& 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 const net::CompletionCallback& 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
92 // completion. This method always completes asynchronously. 92 // completion. This method always completes asynchronously.
93 // (virtual for unittesting) 93 // (virtual for unittesting)
94 virtual void DeleteAppCachesForOrigin(const GURL& origin, 94 virtual void DeleteAppCachesForOrigin(const GURL& origin,
95 net::OldCompletionCallback* callback); 95 net::OldCompletionCallback* callback);
96 96
97 // Checks the integrity of 'response_id' by reading the headers and data. 97 // Checks the integrity of 'response_id' by reading the headers and data.
98 // If it cannot be read, the cache group for 'manifest_url' is deleted. 98 // If it cannot be read, the cache group for 'manifest_url' is deleted.
99 void CheckAppCacheResponse(const GURL& manifest_url_, int64 cache_id, 99 void CheckAppCacheResponse(const GURL& manifest_url_, int64 cache_id,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_appcache_helper.cc ('k') | webkit/appcache/appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698