summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_working_set.h
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-18 23:27:27 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-18 23:27:27 +0000
commit1ededee8107fd0e40e6371a5d35f7d2b451ca433 (patch)
treee180d5419e246f0f3bb69ba274d7abcf409741f9 /webkit/appcache/appcache_working_set.h
parent5510cff445f38b167c8ca9c734e9311fd0505212 (diff)
downloadchromium_src-1ededee8107fd0e40e6371a5d35f7d2b451ca433.zip
chromium_src-1ededee8107fd0e40e6371a5d35f7d2b451ca433.tar.gz
chromium_src-1ededee8107fd0e40e6371a5d35f7d2b451ca433.tar.bz2
Put appcache storage on disk and add a means of disabling the appcache system when certain error conditions arise.
TEST=existing tests apply BUG=none Review URL: http://codereview.chromium.org/542071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36499 0039d316-1c4b-4281-b951-d872f2087c98
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