Index: content/browser/indexed_db/indexed_db_backing_store.h |
diff --git a/content/browser/indexed_db/indexed_db_backing_store.h b/content/browser/indexed_db/indexed_db_backing_store.h |
index 8e5f7ac0de74b28a9c8233e6f638297da3c46907..f400297ce9391635196318abbb3c6417c357080a 100644 |
--- a/content/browser/indexed_db/indexed_db_backing_store.h |
+++ b/content/browser/indexed_db/indexed_db_backing_store.h |
@@ -26,6 +26,7 @@ |
namespace content { |
+class IndexedDBDatabaseError; |
class LevelDBComparator; |
class LevelDBDatabase; |
struct IndexedDBValue; |
@@ -70,6 +71,7 @@ class CONTENT_EXPORT IndexedDBBackingStore |
const GURL& origin_url, |
LevelDBFactory* factory); |
+ virtual void Flush(); |
jsbell
2014/03/26 18:16:58
Can you add a comment to explain what this does? I
cmumford
2014/03/26 21:40:36
Good point - it's not a flush as I originally thou
|
virtual std::vector<base::string16> GetDatabaseNames(); |
virtual leveldb::Status GetIDBDatabaseMetaData( |
const base::string16& name, |
@@ -86,6 +88,11 @@ class CONTENT_EXPORT IndexedDBBackingStore |
int64 int_version); |
virtual leveldb::Status DeleteDatabase(const base::string16& name); |
+ static leveldb::Status DestroyBackingStore(const base::FilePath& path_base, |
+ const GURL& origin_url); |
+ static bool RecordCorruptionInfo(const base::FilePath& path_base, |
+ const GURL& origin_url, |
+ const IndexedDBDatabaseError& error); |
leveldb::Status GetObjectStores( |
int64 database_id, |
IndexedDBDatabaseMetadata::ObjectStoreMap* map) WARN_UNUSED_RESULT; |
@@ -317,6 +324,9 @@ class CONTENT_EXPORT IndexedDBBackingStore |
const GURL& origin_url, |
scoped_ptr<LevelDBDatabase> db, |
scoped_ptr<LevelDBComparator> comparator); |
+ static bool ReadCorruptionInfo(const base::FilePath& path_base, |
+ const GURL& origin_url, |
+ std::string& message); |
leveldb::Status FindKeyInIndex( |
IndexedDBBackingStore::Transaction* transaction, |