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

Unified Diff: content/browser/indexed_db/indexed_db_fake_backing_store.h

Issue 237143006: Make iterating over a corrupted IndexedDB fail. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Status checks. Created 6 years, 8 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: content/browser/indexed_db/indexed_db_fake_backing_store.h
diff --git a/content/browser/indexed_db/indexed_db_fake_backing_store.h b/content/browser/indexed_db/indexed_db_fake_backing_store.h
index f4f67d7ae54bf6700a01a25e1b812f5a71fbe1f0..5c64370563f3ac6896ecd31104c0715f064c8f8e 100644
--- a/content/browser/indexed_db/indexed_db_fake_backing_store.h
+++ b/content/browser/indexed_db/indexed_db_fake_backing_store.h
@@ -22,7 +22,8 @@ class IndexedDBFakeBackingStore : public IndexedDBBackingStore {
IndexedDBFakeBackingStore();
IndexedDBFakeBackingStore(IndexedDBFactory* factory,
base::TaskRunner* task_runner);
- virtual std::vector<base::string16> GetDatabaseNames() OVERRIDE;
+ virtual std::vector<base::string16> GetDatabaseNames(leveldb::Status* s)
+ OVERRIDE;
virtual leveldb::Status GetIDBDatabaseMetaData(const base::string16& name,
IndexedDBDatabaseMetadata*,
bool* found) OVERRIDE;
@@ -95,27 +96,30 @@ class IndexedDBFakeBackingStore : public IndexedDBBackingStore {
int64 database_id,
int64 object_store_id,
const IndexedDBKeyRange& key_range,
- indexed_db::CursorDirection) OVERRIDE;
+ indexed_db::CursorDirection,
+ leveldb::Status*) OVERRIDE;
virtual scoped_ptr<Cursor> OpenObjectStoreCursor(
Transaction* transaction,
int64 database_id,
int64 object_store_id,
const IndexedDBKeyRange& key_range,
- indexed_db::CursorDirection) OVERRIDE;
+ indexed_db::CursorDirection,
+ leveldb::Status*) OVERRIDE;
virtual scoped_ptr<Cursor> OpenIndexKeyCursor(
Transaction* transaction,
int64 database_id,
int64 object_store_id,
int64 index_id,
const IndexedDBKeyRange& key_range,
- indexed_db::CursorDirection) OVERRIDE;
+ indexed_db::CursorDirection,
+ leveldb::Status*) OVERRIDE;
virtual scoped_ptr<Cursor> OpenIndexCursor(Transaction* transaction,
int64 database_id,
int64 object_store_id,
int64 index_id,
const IndexedDBKeyRange& key_range,
- indexed_db::CursorDirection)
- OVERRIDE;
+ indexed_db::CursorDirection,
+ leveldb::Status*) OVERRIDE;
class FakeTransaction : public IndexedDBBackingStore::Transaction {
public:

Powered by Google App Engine
This is Rietveld 408576698