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

Unified Diff: webkit/appcache/appcache_service.h

Issue 7210006: AppCaches which belong to hosted apps are not protected from deletion (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Test beautification. Created 9 years, 5 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
Index: webkit/appcache/appcache_service.h
diff --git a/webkit/appcache/appcache_service.h b/webkit/appcache/appcache_service.h
index 4952c941270c17ab87b63d78ae5d273c53652229..7a07e825c82b35023b42838948b77b7b30fc8471 100644
--- a/webkit/appcache/appcache_service.h
+++ b/webkit/appcache/appcache_service.h
@@ -73,23 +73,28 @@ class AppCacheService {
// Populates 'collection' with info about all of the appcaches stored
// within the service, 'callback' is invoked upon completion. The service
// acquires a reference to the 'collection' until until completion.
- // This method always completes asynchronously.
- void GetAllAppCacheInfo(AppCacheInfoCollection* collection,
- net::CompletionCallback* callback);
-
- // Deletes the group identified by 'manifest_url', 'callback' is
- // invoked upon completion. Upon completion, the cache group and
- // any resources within the group are no longer loadable and all
- // subresource loads for pages associated with a deleted group
- // will fail. This method always completes asynchronously.
- void DeleteAppCacheGroup(const GURL& manifest_url,
+ // This method always completes asynchronously. (virtual for unittesting)
+ virtual void GetAllAppCacheInfo(AppCacheInfoCollection* collection,
+ net::CompletionCallback* callback);
+ // The same as GetAllAppCacheInfo but completes synchronously. (virtual for
+ // unittesting)
+ virtual void SyncGetAllAppCacheInfo(AppCacheInfoCollection* collection);
michaeln 2011/07/14 00:42:34 Please remove the Sync prefixed methods from this
marja(google) 2011/07/14 10:31:59 Done.
+
+ // Deletes the group identified by 'manifest_url', 'callback' is invoked upon
+ // completion. Upon completion, the cache group and any resources within the
+ // group are no longer loadable and all subresource loads for pages associated
+ // with a deleted group will fail. This method always completes
+ // asynchronously. (virtual for unittesting)
+ virtual void DeleteAppCacheGroup(const GURL& manifest_url,
net::CompletionCallback* callback);
+ // The same as DeleteAppCacheGroup but completes synchronously. (virtual for
+ // unittesting)
+ virtual void SyncDeleteAppCacheGroup(const GURL& manifest_url);
// 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);
+ 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,

Powered by Google App Engine
This is Rietveld 408576698