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

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

Issue 295163005: Remove ScriptState::current() from IDBRequest (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/modules/indexeddb/IDBIndex.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 9fa5b5abef9c039d6f18a0ef5c6cb3e5fdc42a27..e6a9d4b564abcf31be1ae18f2b4220e60fee3dc8 100644
--- a/Source/modules/indexeddb/IDBObjectStore.h
+++ b/Source/modules/indexeddb/IDBObjectStore.h
@@ -65,13 +65,13 @@ public:
IDBTransaction* transaction() const { return m_transaction.get(); }
bool autoIncrement() const { return m_metadata.autoIncrement; }
- IDBRequest* openCursor(ExecutionContext*, const ScriptValue& range, const String& direction, ExceptionState&);
- IDBRequest* openKeyCursor(ExecutionContext*, const ScriptValue& range, const String& direction, ExceptionState&);
- IDBRequest* get(ExecutionContext*, const ScriptValue& key, ExceptionState&);
- IDBRequest* add(ExecutionContext*, ScriptValue&, const ScriptValue& key, ExceptionState&);
- IDBRequest* put(ExecutionContext*, ScriptValue&, const ScriptValue& key, ExceptionState&);
- IDBRequest* deleteFunction(ExecutionContext*, const ScriptValue& key, ExceptionState&);
- IDBRequest* clear(ExecutionContext*, ExceptionState&);
+ IDBRequest* openCursor(ScriptState*, const ScriptValue& range, const String& direction, ExceptionState&);
+ IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const String& direction, ExceptionState&);
+ IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&);
+ IDBRequest* add(ScriptState*, ScriptValue&, const ScriptValue& key, ExceptionState&);
+ IDBRequest* put(ScriptState*, ScriptValue&, const ScriptValue& key, ExceptionState&);
+ IDBRequest* deleteFunction(ScriptState*, const ScriptValue& key, ExceptionState&);
+ IDBRequest* clear(ScriptState*, ExceptionState&);
IDBIndex* createIndex(ScriptState* scriptState, const String& name, const String& keyPath, const Dictionary& options, ExceptionState& exceptionState)
{
@@ -84,13 +84,13 @@ public:
IDBIndex* index(const String& name, ExceptionState&);
void deleteIndex(const String& name, ExceptionState&);
- IDBRequest* count(ExecutionContext*, const ScriptValue& range, ExceptionState&);
+ IDBRequest* count(ScriptState*, const ScriptValue& range, ExceptionState&);
// Used by IDBCursor::update():
- IDBRequest* put(ExecutionContext*, blink::WebIDBDatabase::PutMode, IDBAny* source, ScriptValue&, IDBKey*, ExceptionState&);
+ IDBRequest* put(ScriptState*, blink::WebIDBDatabase::PutMode, IDBAny* source, ScriptValue&, IDBKey*, ExceptionState&);
// Used internally and by InspectorIndexedDBAgent:
- IDBRequest* openCursor(ExecutionContext*, IDBKeyRange*, blink::WebIDBCursor::Direction, blink::WebIDBDatabase::TaskType = blink::WebIDBDatabase::NormalTask);
+ IDBRequest* openCursor(ScriptState*, IDBKeyRange*, blink::WebIDBCursor::Direction, blink::WebIDBDatabase::TaskType = blink::WebIDBDatabase::NormalTask);
void markDeleted() { m_deleted = true; }
bool isDeleted() const { return m_deleted; }
@@ -108,7 +108,7 @@ private:
IDBIndex* createIndex(ScriptState*, const String& name, const IDBKeyPath&, const Dictionary&, ExceptionState&);
IDBIndex* createIndex(ScriptState*, const String& name, const IDBKeyPath&, bool unique, bool multiEntry, ExceptionState&);
- IDBRequest* put(ExecutionContext*, blink::WebIDBDatabase::PutMode, IDBAny* source, ScriptValue&, const ScriptValue& key, ExceptionState&);
+ IDBRequest* put(ScriptState*, blink::WebIDBDatabase::PutMode, IDBAny* source, ScriptValue&, const ScriptValue& key, ExceptionState&);
int64_t findIndexId(const String& name) const;
bool containsIndex(const String& name) const
« no previous file with comments | « Source/modules/indexeddb/IDBIndex.idl ('k') | Source/modules/indexeddb/IDBObjectStore.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698