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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBDatabase.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 tests for create rename in the same aborted transaction. 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: third_party/WebKit/Source/modules/indexeddb/IDBDatabase.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.h b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.h
index 57ac964577ab29916c8e9e5e6d3c04b0c559dddb..34711d9243cbaac43733b0cb3fdfaacefeaa53b3 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.h
@@ -67,6 +67,7 @@ public:
void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadata; }
void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&);
void indexDeleted(int64_t objectStoreId, int64_t indexId);
+ void indexRenamed(int64_t objectStoreId, int64_t indexId, const String& newName);
void transactionCreated(IDBTransaction*);
void transactionFinished(const IDBTransaction*);
const String& getObjectStoreName(int64_t objectStoreId) const;
@@ -111,6 +112,7 @@ public:
{
return findObjectStoreId(name) != IDBObjectStoreMetadata::InvalidId;
}
+ void objectStoreRenamed(int64_t storeId, const String& newName);
// Will return nullptr if this database is stopped.
WebIDBDatabase* backend() const { return m_backend.get(); }
@@ -118,6 +120,7 @@ public:
static int64_t nextTransactionId();
static const char indexDeletedErrorMessage[];
+ static const char indexNameTakenErrorMessage[];
static const char isKeyCursorErrorMessage[];
static const char noKeyOrKeyRangeErrorMessage[];
static const char noSuchIndexErrorMessage[];
@@ -126,6 +129,7 @@ public:
static const char notValidKeyErrorMessage[];
static const char notVersionChangeTransactionErrorMessage[];
static const char objectStoreDeletedErrorMessage[];
+ static const char objectStoreNameTakenErrorMessage[];
static const char requestNotFinishedErrorMessage[];
static const char sourceDeletedErrorMessage[];
static const char transactionFinishedErrorMessage[];

Powered by Google App Engine
This is Rietveld 408576698