summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_group.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/appcache/appcache_group.h')
-rw-r--r--webkit/appcache/appcache_group.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_group.h b/webkit/appcache/appcache_group.h
index 1558b5a8..c1bb1fc 100644
--- a/webkit/appcache/appcache_group.h
+++ b/webkit/appcache/appcache_group.h
@@ -55,6 +55,9 @@ class AppCacheGroup : public base::RefCounted<AppCacheGroup> {
bool is_obsolete() const { return is_obsolete_; }
void set_obsolete(bool value) { is_obsolete_ = value; }
+ bool is_being_deleted() const { return is_being_deleted_; }
+ void set_being_deleted(bool value) { is_being_deleted_ = value; }
+
AppCache* newest_complete_cache() const { return newest_complete_cache_; }
void AddCache(AppCache* complete_cache);
@@ -81,6 +84,9 @@ class AppCacheGroup : public base::RefCounted<AppCacheGroup> {
void StartUpdateWithNewMasterEntry(AppCacheHost* host,
const GURL& new_master_resource);
+ // Cancels an update if one is running.
+ void CancelUpdate();
+
private:
class HostObserver;
@@ -113,6 +119,7 @@ class AppCacheGroup : public base::RefCounted<AppCacheGroup> {
const GURL manifest_url_;
UpdateStatus update_status_;
bool is_obsolete_;
+ bool is_being_deleted_;
std::vector<int64> newly_deletable_response_ids_;
// Old complete app caches.