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

Unified Diff: webkit/appcache/appcache_service.h

Issue 7031065: AppCache + Quota integration (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/appcache/appcache_quota_client_unittest.cc ('k') | webkit/appcache/appcache_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_service.h
===================================================================
--- webkit/appcache/appcache_service.h (revision 88615)
+++ webkit/appcache/appcache_service.h (working copy)
@@ -35,6 +35,7 @@
namespace appcache {
class AppCacheBackendImpl;
+class AppCacheQuotaClient;
class AppCachePolicy;
// Refcounted container to avoid copying the collection in callbacks.
@@ -84,6 +85,12 @@
void DeleteAppCacheGroup(const GURL& manifest_url,
net::CompletionCallback* callback);
+ // Deletes all appcaches for the origin, 'callback' is invoked upon
+ // completion. This method always completes asynchronously.
+ // (virtual for unittesting)
+ virtual void DeleteAppCachesForOrigin(const GURL& origin,
+ net::CompletionCallback* callback);
+
// Context for use during cache updates, should only be accessed
// on the IO thread. We do NOT add a reference to the request context,
// it is the callers responsibility to ensure that the pointer
@@ -110,6 +117,10 @@
return quota_manager_proxy_.get();
}
+ AppCacheQuotaClient* quota_client() const {
+ return quota_client_;
+ }
+
// Each child process in chrome uses a distinct backend instance.
// See chrome/browser/AppCacheDispatcherHost.
void RegisterBackend(AppCacheBackendImpl* backend_impl);
@@ -122,15 +133,20 @@
AppCacheStorage* storage() const { return storage_.get(); }
protected:
+ friend class AppCacheStorageImplTest;
+ friend class AppCacheServiceTest;
+
class AsyncHelper;
class CanHandleOfflineHelper;
class DeleteHelper;
+ class DeleteOriginHelper;
class GetInfoHelper;
typedef std::set<AsyncHelper*> PendingAsyncHelpers;
typedef std::map<int, AppCacheBackendImpl*> BackendMap;
AppCachePolicy* appcache_policy_;
+ AppCacheQuotaClient* quota_client_;
scoped_ptr<AppCacheStorage> storage_;
scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
« no previous file with comments | « webkit/appcache/appcache_quota_client_unittest.cc ('k') | webkit/appcache/appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698