summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_working_set.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/appcache/appcache_working_set.h')
-rw-r--r--webkit/appcache/appcache_working_set.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_working_set.h b/webkit/appcache/appcache_working_set.h
index 479e74d..15221d12 100644
--- a/webkit/appcache/appcache_working_set.h
+++ b/webkit/appcache/appcache_working_set.h
@@ -22,8 +22,12 @@ class AppCacheWorkingSet {
public:
typedef std::map<GURL, AppCacheGroup*> GroupMap;
+ AppCacheWorkingSet() : is_disabled_(false) {}
~AppCacheWorkingSet();
+ void Disable();
+ bool is_disabled() const { return is_disabled_; }
+
void AddCache(AppCache* cache);
void RemoveCache(AppCache* cache);
AppCache* GetCache(int64 id) {
@@ -63,6 +67,7 @@ class AppCacheWorkingSet {
GroupMap groups_;
GroupsByOriginMap groups_by_origin_; // origin -> (manifest -> group)
ResponseInfoMap response_infos_;
+ bool is_disabled_;
};
} // namespace appcache