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

Unified Diff: Source/modules/indexeddb/IDBObjectStore.h

Issue 236783002: Pass NewScriptState to idbAnyToScriptValue() and idbKeyToScriptValue() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/modules/indexeddb/IDBKeyRange.idl ('k') | Source/modules/indexeddb/IDBObjectStore.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBObjectStore.h
diff --git a/Source/modules/indexeddb/IDBObjectStore.h b/Source/modules/indexeddb/IDBObjectStore.h
index 7c58b6882e5d5d7128d1514d1b6b622761927b32..29384a00a94f15008190e8213851f0b3f4c3f8be 100644
--- a/Source/modules/indexeddb/IDBObjectStore.h
+++ b/Source/modules/indexeddb/IDBObjectStore.h
@@ -60,7 +60,7 @@ public:
// Implement the IDBObjectStore IDL
int64_t id() const { return m_metadata.id; }
const String& name() const { return m_metadata.name; }
- ScriptValue keyPath(ExecutionContext*) const;
+ ScriptValue keyPath(NewScriptState*) const;
PassRefPtr<DOMStringList> indexNames() const;
PassRefPtr<IDBTransaction> transaction() const { return m_transaction; }
bool autoIncrement() const { return m_metadata.autoIncrement; }
@@ -73,8 +73,14 @@ public:
PassRefPtr<IDBRequest> deleteFunction(ExecutionContext*, const ScriptValue& key, ExceptionState&);
PassRefPtr<IDBRequest> clear(ExecutionContext*, ExceptionState&);
- PassRefPtr<IDBIndex> createIndex(ExecutionContext* context, const String& name, const String& keyPath, const Dictionary& options, ExceptionState& exceptionState) { return createIndex(context, name, IDBKeyPath(keyPath), options, exceptionState); }
- PassRefPtr<IDBIndex> createIndex(ExecutionContext* context, const String& name, const Vector<String>& keyPath, const Dictionary& options, ExceptionState& exceptionState) { return createIndex(context, name, IDBKeyPath(keyPath), options, exceptionState); }
+ PassRefPtr<IDBIndex> createIndex(NewScriptState* scriptState, const String& name, const String& keyPath, const Dictionary& options, ExceptionState& exceptionState)
+ {
+ return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exceptionState);
+ }
+ PassRefPtr<IDBIndex> createIndex(NewScriptState* scriptState, const String& name, const Vector<String>& keyPath, const Dictionary& options, ExceptionState& exceptionState)
+ {
+ return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exceptionState);
+ }
PassRefPtr<IDBIndex> index(const String& name, ExceptionState&);
void deleteIndex(const String& name, ExceptionState&);
@@ -101,8 +107,8 @@ public:
private:
IDBObjectStore(const IDBObjectStoreMetadata&, IDBTransaction*);
- PassRefPtr<IDBIndex> createIndex(ExecutionContext*, const String& name, const IDBKeyPath&, const Dictionary&, ExceptionState&);
- PassRefPtr<IDBIndex> createIndex(ExecutionContext*, const String& name, const IDBKeyPath&, bool unique, bool multiEntry, ExceptionState&);
+ PassRefPtr<IDBIndex> createIndex(NewScriptState*, const String& name, const IDBKeyPath&, const Dictionary&, ExceptionState&);
+ PassRefPtr<IDBIndex> createIndex(NewScriptState*, const String& name, const IDBKeyPath&, bool unique, bool multiEntry, ExceptionState&);
PassRefPtr<IDBRequest> put(blink::WebIDBDatabase::PutMode, PassRefPtr<IDBAny> source, ScriptState*, ScriptValue&, const ScriptValue& key, ExceptionState&);
int64_t findIndexId(const String& name) const;
« no previous file with comments | « Source/modules/indexeddb/IDBKeyRange.idl ('k') | Source/modules/indexeddb/IDBObjectStore.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698