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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Addressed most of dcheng@'s feedback. Created 4 years, 2 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: 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;
}

Powered by Google App Engine
This is Rietveld 408576698