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

Unified Diff: webkit/browser/appcache/appcache_database.h

Issue 137493003: Appcache::OnCorruptionDetected handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | webkit/browser/appcache/appcache_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/appcache/appcache_database.h
diff --git a/webkit/browser/appcache/appcache_database.h b/webkit/browser/appcache/appcache_database.h
index d374cfd69a9851daa15cd739c60e9789f11c487e..e053fc5faf221a39112226b2b71df996f92aabb5 100644
--- a/webkit/browser/appcache/appcache_database.h
+++ b/webkit/browser/appcache/appcache_database.h
@@ -86,6 +86,8 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheDatabase {
void CloseConnection();
void Disable();
bool is_disabled() const { return is_disabled_; }
+ bool was_corruption_dectected();
jsbell 2014/01/22 00:37:19 typo: "dectected"
+ // const; { return was_corruption_detected_; }
int64 GetOriginUsage(const GURL& origin);
bool GetAllOriginUsage(std::map<GURL, int64>* usage_map);
@@ -199,12 +201,16 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheDatabase {
// and bodies are stored, and then creates a new database file.
bool DeleteExistingAndCreateNewDatabase();
+ void OnDatabaseError(int err, sql::Statement* stmt);
+
base::FilePath db_file_path_;
scoped_ptr<sql::Connection> db_;
scoped_ptr<sql::MetaTable> meta_table_;
bool is_disabled_;
bool is_recreating_;
+ bool was_corruption_detected_;
+ friend class AppCacheStorageImplTest;
FRIEND_TEST_ALL_PREFIXES(AppCacheDatabaseTest, CacheRecords);
FRIEND_TEST_ALL_PREFIXES(AppCacheDatabaseTest, EntryRecords);
FRIEND_TEST_ALL_PREFIXES(AppCacheDatabaseTest, QuickIntegrityCheck);
@@ -218,6 +224,7 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheDatabase {
FRIEND_TEST_ALL_PREFIXES(AppCacheDatabaseTest, OriginUsage);
FRIEND_TEST_ALL_PREFIXES(AppCacheDatabaseTest, UpgradeSchema3to5);
FRIEND_TEST_ALL_PREFIXES(AppCacheDatabaseTest, UpgradeSchema4to5);
+ FRIEND_TEST_ALL_PREFIXES(AppCacheDatabaseTest, WasCorrutionDetected);
DISALLOW_COPY_AND_ASSIGN(AppCacheDatabase);
};
« no previous file with comments | « no previous file | webkit/browser/appcache/appcache_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698