Index: third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp |
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp |
index c0c93bb67abf5ab45c928e3270436578f997909c..3cd400aed97da8b512a736e0f4f7a73d8790c5b4 100644 |
--- a/third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp |
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp |
@@ -35,7 +35,6 @@ |
#include "modules/indexeddb/IDBObjectStore.h" |
#include "modules/indexeddb/IDBTracing.h" |
#include "modules/indexeddb/IDBTransaction.h" |
-#include "modules/indexeddb/WebIDBCallbacksImpl.h" |
#include "public/platform/modules/indexeddb/WebIDBKeyRange.h" |
#include <memory> |
@@ -158,7 +157,7 @@ IDBRequest* IDBIndex::openCursor(ScriptState* scriptState, |
request->setCursorDetails(IndexedDB::CursorKeyAndValue, direction); |
backendDB()->openCursor(m_transaction->id(), m_objectStore->id(), id(), |
keyRange, direction, false, WebIDBTaskTypeNormal, |
- WebIDBCallbacksImpl::create(request).release()); |
+ request->createWebCallbacks().release()); |
return request; |
} |
@@ -196,7 +195,7 @@ IDBRequest* IDBIndex::count(ScriptState* scriptState, |
IDBRequest* request = IDBRequest::create(scriptState, IDBAny::create(this), |
m_transaction.get()); |
backendDB()->count(m_transaction->id(), m_objectStore->id(), id(), keyRange, |
- WebIDBCallbacksImpl::create(request).release()); |
+ request->createWebCallbacks().release()); |
return request; |
} |
@@ -237,7 +236,7 @@ IDBRequest* IDBIndex::openKeyCursor(ScriptState* scriptState, |
request->setCursorDetails(IndexedDB::CursorKeyOnly, direction); |
backendDB()->openCursor(m_transaction->id(), m_objectStore->id(), id(), |
keyRange, direction, true, WebIDBTaskTypeNormal, |
- WebIDBCallbacksImpl::create(request).release()); |
+ request->createWebCallbacks().release()); |
return request; |
} |
@@ -324,7 +323,7 @@ IDBRequest* IDBIndex::getInternal(ScriptState* scriptState, |
IDBRequest* request = IDBRequest::create(scriptState, IDBAny::create(this), |
m_transaction.get()); |
backendDB()->get(m_transaction->id(), m_objectStore->id(), id(), keyRange, |
- keyOnly, WebIDBCallbacksImpl::create(request).release()); |
+ keyOnly, request->createWebCallbacks().release()); |
return request; |
} |
@@ -366,7 +365,7 @@ IDBRequest* IDBIndex::getAllInternal(ScriptState* scriptState, |
m_transaction.get()); |
backendDB()->getAll(m_transaction->id(), m_objectStore->id(), id(), keyRange, |
maxCount, keyOnly, |
- WebIDBCallbacksImpl::create(request).release()); |
+ request->createWebCallbacks().release()); |
return request; |
} |