| 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 e7aa21e16c01f1e522071aeb12ef9b047950f9a1..25e4126deeacbcd8e06f4c49b4851871a8619977 100644
|
| --- a/content/browser/indexed_db/indexed_db_backing_store.h
|
| +++ b/content/browser/indexed_db/indexed_db_backing_store.h
|
| @@ -27,6 +27,7 @@
|
|
|
| namespace content {
|
|
|
| +class IndexedDBDatabaseError;
|
| class LevelDBComparator;
|
| class LevelDBDatabase;
|
| struct IndexedDBValue;
|
| @@ -78,6 +79,7 @@ class CONTENT_EXPORT IndexedDBBackingStore
|
| const GURL& origin_url,
|
| LevelDBFactory* factory);
|
|
|
| + virtual void Compact();
|
| virtual std::vector<base::string16> GetDatabaseNames();
|
| virtual leveldb::Status GetIDBDatabaseMetaData(
|
| const base::string16& name,
|
| @@ -94,6 +96,12 @@ class CONTENT_EXPORT IndexedDBBackingStore
|
| int64 int_version);
|
| virtual leveldb::Status DeleteDatabase(const base::string16& name);
|
|
|
| + // Assumes caller has already closed the backing store.
|
| + 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 std::string& message);
|
| leveldb::Status GetObjectStores(
|
| int64 database_id,
|
| IndexedDBDatabaseMetadata::ObjectStoreMap* map) WARN_UNUSED_RESULT;
|
| @@ -325,6 +333,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,
|
|
|