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

Unified Diff: webkit/fileapi/file_system_origin_database.h

Issue 9663021: Add database recovery for FileSystemOriginDatabase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add tests Created 8 years, 9 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
Index: webkit/fileapi/file_system_origin_database.h
diff --git a/webkit/fileapi/file_system_origin_database.h b/webkit/fileapi/file_system_origin_database.h
index ac729dfbf50d9433fb64328a4409510987fd96ce..c8b6a38ad55ee23c9f390be0c27234ae4c216cec 100644
--- a/webkit/fileapi/file_system_origin_database.h
+++ b/webkit/fileapi/file_system_origin_database.h
@@ -52,7 +52,8 @@ class FileSystemOriginDatabase {
void DropDatabase();
private:
- bool Init();
+ bool Init(bool cleanup_if_corrupted);
+ bool CheckIfDatabaseCorrupted(const leveldb::Status& status) const;
void HandleError(const tracked_objects::Location& from_here,
leveldb::Status status);
bool GetLastPathNumber(int* number);

Powered by Google App Engine
This is Rietveld 408576698