Chromium Code Reviews| Index: third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h |
| diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h |
| index 8ee6519da8f203f6902bf6ba4a2385450faec8b6..0a5173a770c71580f5f35a52bf7ee7b82d450b8d 100644 |
| --- a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h |
| +++ b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h |
| @@ -62,6 +62,7 @@ public: |
| // Implement the IDBObjectStore IDL |
| int64_t id() const { return m_metadata.id; } |
| const String& name() const { return m_metadata.name; } |
| + void setName(const String& name, ExceptionState&); |
| ScriptValue keyPath(ScriptState*) const; |
| DOMStringList* indexNames() const; |
| IDBTransaction* transaction() const { return m_transaction.get(); } |
| @@ -105,6 +106,13 @@ public: |
| typedef HeapVector<Member<IDBKey>> IndexKeys; |
| + // Used by IDBIndex::setName: |
| + bool containsIndex(const String& name) const |
| + { |
| + return findIndexId(name) != IDBIndexMetadata::InvalidId; |
| + } |
| + void indexWillBeRenamed(const String& oldName, const String& newName); |
|
jsbell
2016/09/07 17:16:14
"will be" makes it sound like this will happen asy
pwnall
2016/09/07 22:43:52
Done.
I initially avoided that because the index'
|
| + |
| WebIDBDatabase* backendDB() const; |
| private: |
| @@ -114,10 +122,6 @@ private: |
| IDBRequest* put(ScriptState*, WebIDBPutMode, IDBAny* source, const ScriptValue&, const ScriptValue& key, ExceptionState&); |
| int64_t findIndexId(const String& name) const; |
| - bool containsIndex(const String& name) const |
| - { |
| - return findIndexId(name) != IDBIndexMetadata::InvalidId; |
| - } |
| IDBObjectStoreMetadata m_metadata; |
| Member<IDBTransaction> m_transaction; |