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

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
Index: Source/modules/indexeddb/IDBObjectStore.h
diff --git a/Source/modules/indexeddb/IDBObjectStore.h b/Source/modules/indexeddb/IDBObjectStore.h
index 8a918bc1b96346f2265695832368035dd40e6a34..6cd51fcc041695cfed58188b205d1d8c883bf928 100644
--- a/Source/modules/indexeddb/IDBObjectStore.h
+++ b/Source/modules/indexeddb/IDBObjectStore.h
@@ -66,13 +66,13 @@ public:
IDBTransaction* transaction() const { return m_transaction.get(); }
bool autoIncrement() const { return m_metadata.autoIncrement; }
- PassRefPtrWillBeRawPtr<IDBRequest> openCursor(ExecutionContext*, const ScriptValue& range, const String& direction, ExceptionState&);
- PassRefPtrWillBeRawPtr<IDBRequest> openKeyCursor(ExecutionContext*, const ScriptValue& range, const String& direction, ExceptionState&);
- PassRefPtrWillBeRawPtr<IDBRequest> get(ExecutionContext*, const ScriptValue& key, ExceptionState&);
- PassRefPtrWillBeRawPtr<IDBRequest> add(ExecutionContext*, ScriptValue&, const ScriptValue& key, ExceptionState&);
- PassRefPtrWillBeRawPtr<IDBRequest> put(ExecutionContext*, ScriptValue&, const ScriptValue& key, ExceptionState&);
- PassRefPtrWillBeRawPtr<IDBRequest> deleteFunction(ExecutionContext*, const ScriptValue& key, ExceptionState&);
- PassRefPtrWillBeRawPtr<IDBRequest> clear(ExecutionContext*, ExceptionState&);
+ PassRefPtrWillBeRawPtr<IDBRequest> openCursor(ScriptState*, const ScriptValue& range, const String& direction, ExceptionState&);
+ PassRefPtrWillBeRawPtr<IDBRequest> openKeyCursor(ScriptState*, const ScriptValue& range, const String& direction, ExceptionState&);
+ PassRefPtrWillBeRawPtr<IDBRequest> get(ScriptState*, const ScriptValue& key, ExceptionState&);
+ PassRefPtrWillBeRawPtr<IDBRequest> add(ScriptState*, ScriptValue&, const ScriptValue& key, ExceptionState&);
+ PassRefPtrWillBeRawPtr<IDBRequest> put(ScriptState*, ScriptValue&, const ScriptValue& key, ExceptionState&);
+ PassRefPtrWillBeRawPtr<IDBRequest> deleteFunction(ScriptState*, const ScriptValue& key, ExceptionState&);
+ PassRefPtrWillBeRawPtr<IDBRequest> clear(ScriptState*, ExceptionState&);
PassRefPtrWillBeRawPtr<IDBIndex> createIndex(ScriptState* scriptState, const String& name, const String& keyPath, const Dictionary& options, ExceptionState& exceptionState)
{
@@ -85,13 +85,13 @@ public:
PassRefPtrWillBeRawPtr<IDBIndex> index(const String& name, ExceptionState&);
void deleteIndex(const String& name, ExceptionState&);
- PassRefPtrWillBeRawPtr<IDBRequest> count(ExecutionContext*, const ScriptValue& range, ExceptionState&);
+ PassRefPtrWillBeRawPtr<IDBRequest> count(ScriptState*, const ScriptValue& range, ExceptionState&);
// Used by IDBCursor::update():
- PassRefPtrWillBeRawPtr<IDBRequest> put(ExecutionContext*, blink::WebIDBDatabase::PutMode, PassRefPtrWillBeRawPtr<IDBAny> source, ScriptValue&, PassRefPtrWillBeRawPtr<IDBKey>, ExceptionState&);
+ PassRefPtrWillBeRawPtr<IDBRequest> put(ScriptState*, blink::WebIDBDatabase::PutMode, PassRefPtrWillBeRawPtr<IDBAny> source, ScriptValue&, PassRefPtrWillBeRawPtr<IDBKey>, ExceptionState&);
// Used internally and by InspectorIndexedDBAgent:
- PassRefPtrWillBeRawPtr<IDBRequest> openCursor(ExecutionContext*, PassRefPtrWillBeRawPtr<IDBKeyRange>, blink::WebIDBCursor::Direction, blink::WebIDBDatabase::TaskType = blink::WebIDBDatabase::NormalTask);
+ PassRefPtrWillBeRawPtr<IDBRequest> openCursor(ScriptState*, PassRefPtrWillBeRawPtr<IDBKeyRange>, blink::WebIDBCursor::Direction, blink::WebIDBDatabase::TaskType = blink::WebIDBDatabase::NormalTask);
void markDeleted() { m_deleted = true; }
bool isDeleted() const { return m_deleted; }
@@ -109,7 +109,7 @@ private:
PassRefPtrWillBeRawPtr<IDBIndex> createIndex(ScriptState*, const String& name, const IDBKeyPath&, const Dictionary&, ExceptionState&);
PassRefPtrWillBeRawPtr<IDBIndex> createIndex(ScriptState*, const String& name, const IDBKeyPath&, bool unique, bool multiEntry, ExceptionState&);
- PassRefPtrWillBeRawPtr<IDBRequest> put(ExecutionContext*, blink::WebIDBDatabase::PutMode, PassRefPtrWillBeRawPtr<IDBAny> source, ScriptValue&, const ScriptValue& key, ExceptionState&);
+ PassRefPtrWillBeRawPtr<IDBRequest> put(ScriptState*, blink::WebIDBDatabase::PutMode, PassRefPtrWillBeRawPtr<IDBAny> source, ScriptValue&, const ScriptValue& key, ExceptionState&);
int64_t findIndexId(const String& name) const;
bool containsIndex(const String& name) const

Powered by Google App Engine
This is Rietveld 408576698