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

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

Issue 2276593002: Support renaming of IndexedDB indexes and object stores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test coverage for the (slightly incorrect) behavior in strict mode when our flag is not enabl… Created 4 years, 3 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_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 de678765625f0890d7cc2bd89fa2da6904a6cdf3..b26c323d0065c3b89e3fba90a66d82c4b2f660d2 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.h
+++ b/content/browser/indexed_db/indexed_db_backing_store.h
@@ -437,11 +437,16 @@ class CONTENT_EXPORT IndexedDBBackingStore
int64_t object_store_id,
const base::string16& name,
const IndexedDBKeyPath& key_path,
- bool auto_increment);
+ bool auto_increment) WARN_UNUSED_RESULT;
virtual leveldb::Status DeleteObjectStore(
IndexedDBBackingStore::Transaction* transaction,
int64_t database_id,
int64_t object_store_id) WARN_UNUSED_RESULT;
+ virtual leveldb::Status RenameObjectStore(
+ IndexedDBBackingStore::Transaction* transaction,
+ int64_t database_id,
+ int64_t object_store_id,
+ const base::string16& name) WARN_UNUSED_RESULT;
virtual leveldb::Status GetRecord(
IndexedDBBackingStore::Transaction* transaction,
@@ -505,6 +510,12 @@ class CONTENT_EXPORT IndexedDBBackingStore
int64_t database_id,
int64_t object_store_id,
int64_t index_id) WARN_UNUSED_RESULT;
+ virtual leveldb::Status RenameIndex(
+ IndexedDBBackingStore::Transaction* transaction,
+ int64_t database_id,
+ int64_t object_store_id,
+ int64_t index_id,
+ const base::string16& new_name) WARN_UNUSED_RESULT;
virtual leveldb::Status PutIndexDataForRecord(
IndexedDBBackingStore::Transaction* transaction,
int64_t database_id,

Powered by Google App Engine
This is Rietveld 408576698