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

Unified Diff: webkit/appcache/mock_appcache_storage.cc

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/mock_appcache_storage.cc
diff --git a/webkit/appcache/mock_appcache_storage.cc b/webkit/appcache/mock_appcache_storage.cc
index 43fcd6b20f441e7cf15996e318af72db4e517d41..9a92e48f215161519025594bf2e5ea6a975485d7 100644
--- a/webkit/appcache/mock_appcache_storage.cc
+++ b/webkit/appcache/mock_appcache_storage.cc
@@ -50,6 +50,10 @@ void MockAppCacheStorage::GetAllInfo(Delegate* delegate) {
make_scoped_refptr(GetOrCreateDelegateReference(delegate))));
}
+void MockAppCacheStorage::SyncGetAllInfo(Delegate* delegate) {
+ ProcessGetAllInfo(make_scoped_refptr(GetOrCreateDelegateReference(delegate)));
+}
+
void MockAppCacheStorage::LoadCache(int64 id, Delegate* delegate) {
DCHECK(delegate);
AppCache* cache = working_set_.GetCache(id);
@@ -77,6 +81,14 @@ void MockAppCacheStorage::LoadOrCreateGroup(
manifest_url, GetOrCreateDelegateReference(delegate));
}
+void MockAppCacheStorage::SyncLoadOrCreateGroup(
+ const GURL& manifest_url, Delegate* delegate) {
+ DCHECK(delegate);
+ ProcessLoadOrCreateGroup(
+ manifest_url,
+ make_scoped_refptr(GetOrCreateDelegateReference(delegate)));
+}
+
void MockAppCacheStorage::StoreGroupAndNewestCache(
AppCacheGroup* group, AppCache* newest_cache, Delegate* delegate) {
DCHECK(group && delegate && newest_cache);
@@ -145,6 +157,14 @@ void MockAppCacheStorage::MakeGroupObsolete(
make_scoped_refptr(GetOrCreateDelegateReference(delegate))));
}
+void MockAppCacheStorage::SyncMakeGroupObsolete(
+ AppCacheGroup* group, Delegate* delegate) {
+ DCHECK(group && delegate);
+ ProcessMakeGroupObsolete(
+ make_scoped_refptr(group),
+ make_scoped_refptr(GetOrCreateDelegateReference(delegate)));
+}
+
AppCacheResponseReader* MockAppCacheStorage::CreateResponseReader(
const GURL& manifest_url, int64 response_id) {
return new AppCacheResponseReader(response_id, disk_cache());
« webkit/appcache/appcache_storage_impl.cc ('K') | « webkit/appcache/mock_appcache_storage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698