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

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

Issue 277583002: IndexedDB: Prevent store/index deletion from racing ahead of use (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: base::Closure copies const-refs, so this is better Created 6 years, 7 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.cc
diff --git a/content/browser/indexed_db/indexed_db_fake_backing_store.cc b/content/browser/indexed_db/indexed_db_fake_backing_store.cc
index 35e3a50e4d82e52eb534d0549810c2ad265ae498..6773d1bba5d6437506d01422f1856f57a91da069 100644
--- a/content/browser/indexed_db/indexed_db_fake_backing_store.cc
+++ b/content/browser/indexed_db/indexed_db_fake_backing_store.cc
@@ -67,21 +67,32 @@ leveldb::Status IndexedDBFakeBackingStore::CreateObjectStore(
const base::string16& name,
const IndexedDBKeyPath&,
bool auto_increment) {
- return leveldb::Status::IOError("test error");
+ return leveldb::Status::OK();
+}
+
+leveldb::Status IndexedDBFakeBackingStore::PutRecord(
+ IndexedDBBackingStore::Transaction* transaction,
+ int64 database_id,
+ int64 object_store_id,
+ const IndexedDBKey& key,
+ IndexedDBValue& value,
+ ScopedVector<webkit_blob::BlobDataHandle>* handles,
+ RecordIdentifier* record) {
+ return leveldb::Status::OK();
}
leveldb::Status IndexedDBFakeBackingStore::ClearObjectStore(
Transaction*,
int64 database_id,
int64 object_store_id) {
- return leveldb::Status::IOError("test error");
+ return leveldb::Status::OK();
}
leveldb::Status IndexedDBFakeBackingStore::DeleteRecord(
Transaction*,
int64 database_id,
int64 object_store_id,
const RecordIdentifier&) {
- return leveldb::Status::IOError("test error");
+ return leveldb::Status::OK();
}
leveldb::Status IndexedDBFakeBackingStore::GetKeyGeneratorCurrentNumber(
Transaction*,
@@ -117,14 +128,14 @@ leveldb::Status IndexedDBFakeBackingStore::CreateIndex(
const IndexedDBKeyPath&,
bool is_unique,
bool is_multi_entry) {
- return leveldb::Status::IOError("test error");
+ return leveldb::Status::OK();
}
leveldb::Status IndexedDBFakeBackingStore::DeleteIndex(Transaction*,
int64 database_id,
int64 object_store_id,
int64 index_id) {
- return leveldb::Status::IOError("test error");
+ return leveldb::Status::OK();
}
leveldb::Status IndexedDBFakeBackingStore::PutIndexDataForRecord(
Transaction*,
@@ -133,7 +144,7 @@ leveldb::Status IndexedDBFakeBackingStore::PutIndexDataForRecord(
int64 index_id,
const IndexedDBKey&,
const RecordIdentifier&) {
- return leveldb::Status::IOError("test error");
+ return leveldb::Status::OK();
}
void IndexedDBFakeBackingStore::ReportBlobUnused(int64 database_id,

Powered by Google App Engine
This is Rietveld 408576698