| Index: webkit/fileapi/file_system_directory_database.h
|
| diff --git a/webkit/fileapi/file_system_directory_database.h b/webkit/fileapi/file_system_directory_database.h
|
| index 1c760b8e3fd8c487e708a8830553f0c576a625ce..8308a39bace866975267697bb26d32dc473c97ab 100644
|
| --- a/webkit/fileapi/file_system_directory_database.h
|
| +++ b/webkit/fileapi/file_system_directory_database.h
|
| @@ -18,6 +18,7 @@ class Location;
|
| }
|
|
|
| namespace leveldb {
|
| +class Status;
|
| class WriteBatch;
|
| }
|
|
|
| @@ -87,7 +88,8 @@ class FileSystemDirectoryDatabase {
|
| static bool DestroyDatabase(const FilePath& path);
|
|
|
| private:
|
| - bool Init();
|
| + bool Init(bool cleanup_if_corrupted);
|
| + bool CheckIfDatabaseCorrupted(const leveldb::Status& status) const;
|
| bool StoreDefaultValues();
|
| bool GetLastFileId(FileId* file_id);
|
| bool VerifyIsDirectory(FileId file_id);
|
|
|