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

Unified Diff: webkit/appcache/appcache_storage.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_storage.h
diff --git a/webkit/appcache/appcache_storage.h b/webkit/appcache/appcache_storage.h
index 9ddb7c3f34ba08132dea7aa8206d6ee493076d23..74e1097d722763e44e596060aad91ae509627671 100644
--- a/webkit/appcache/appcache_storage.h
+++ b/webkit/appcache/appcache_storage.h
@@ -76,6 +76,9 @@ class AppCacheStorage {
// stored in the system. Upon completion the delegate will be called
// with the results.
virtual void GetAllInfo(Delegate* delegate) = 0;
+ // The same as GetAllInfo but completes synchronously (delegate will be called
+ // within the method).
+ virtual void SyncGetAllInfo(Delegate* delegate) = 0;
michaeln 2011/07/14 00:42:34 Please remove all of these Sync prefixed methods f
marja(google) 2011/07/14 10:31:59 Done.
// Schedules a cache to be loaded from storage. Upon load completion
// the delegate will be called back. If the cache already resides in
@@ -91,6 +94,10 @@ class AppCacheStorage {
// the delegate will be called back with a NULL group pointer.
virtual void LoadOrCreateGroup(
const GURL& manifest_url, Delegate* delegate) = 0;
+ // The same as SyncLoadOrCreateGroup but completes synchronously (delegate
+ // will be called within the method).
+ virtual void SyncLoadOrCreateGroup(
+ const GURL& manifest_url, Delegate* delegate) = 0;
// Schedules response info to be loaded from storage.
// Upon load completion the delegate will be called back. If the data
@@ -137,6 +144,10 @@ class AppCacheStorage {
// instance is marked as obsolete and the delegate callback is called.
virtual void MakeGroupObsolete(
AppCacheGroup* group, Delegate* delegate) = 0;
+ // The same as MakeGroupObsolete but completes synchronously (delegate will be
+ // called within the method).
+ virtual void SyncMakeGroupObsolete(
+ AppCacheGroup* group, Delegate* delegate) = 0;
// Cancels all pending callbacks for the delegate. The delegate callbacks
// will not be invoked after, however any scheduled operations will still
@@ -313,4 +324,3 @@ class AppCacheStorage {
} // namespace appcache
#endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_
-

Powered by Google App Engine
This is Rietveld 408576698