diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-18 23:27:27 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-18 23:27:27 +0000 |
commit | 1ededee8107fd0e40e6371a5d35f7d2b451ca433 (patch) | |
tree | e180d5419e246f0f3bb69ba274d7abcf409741f9 /webkit/appcache/appcache_database.h | |
parent | 5510cff445f38b167c8ca9c734e9311fd0505212 (diff) | |
download | chromium_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_database.h')
-rw-r--r-- | webkit/appcache/appcache_database.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/appcache/appcache_database.h b/webkit/appcache/appcache_database.h index 0b9d1ac..89fc330 100644 --- a/webkit/appcache/appcache_database.h +++ b/webkit/appcache/appcache_database.h @@ -70,6 +70,9 @@ class AppCacheDatabase { ~AppCacheDatabase(); void CloseConnection(); + void Disable(); + bool is_disabled() const { return is_disabled_; } + bool FindOriginsWithGroups(std::set<GURL>* origins); bool FindLastStorageIds( int64* last_group_id, int64* last_cache_id, int64* last_response_id, @@ -172,7 +175,7 @@ class AppCacheDatabase { FilePath db_file_path_; scoped_ptr<sql::Connection> db_; scoped_ptr<sql::MetaTable> meta_table_; - bool has_open_error_; + bool is_disabled_; bool is_recreating_; FRIEND_TEST(AppCacheDatabaseTest, CacheRecords); |