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

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

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Address last nits and fix leaks in unit tests. 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
« no previous file with comments | « mojo/public/tools/bindings/mojom.gni ('k') | third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp
index 4336503a4c15b803fba0b645d0c02e130e115a4f..90c16221818a606500c999ebd775dda4a4b54c54 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp
@@ -38,7 +38,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/WebIDBDatabase.h"
#include "public/platform/modules/indexeddb/WebIDBKeyRange.h"
#include <limits>
@@ -174,7 +173,7 @@ void IDBCursor::advance(unsigned count, ExceptionState& exceptionState) {
m_request->setPendingCursor(this);
m_gotValue = false;
- m_backend->advance(count, WebIDBCallbacksImpl::create(m_request).release());
+ m_backend->advance(count, m_request->createWebCallbacks().release());
}
void IDBCursor::continueFunction(ScriptState* scriptState,
@@ -323,7 +322,7 @@ void IDBCursor::continueFunction(IDBKey* key,
m_request->setPendingCursor(this);
m_gotValue = false;
m_backend->continueFunction(key, primaryKey,
- WebIDBCallbacksImpl::create(m_request).release());
+ m_request->createWebCallbacks().release());
}
IDBRequest* IDBCursor::deleteFunction(ScriptState* scriptState,
@@ -373,7 +372,7 @@ IDBRequest* IDBCursor::deleteFunction(ScriptState* scriptState,
m_transaction.get());
m_transaction->backendDB()->deleteRange(
m_transaction->id(), effectiveObjectStore()->id(), keyRange,
- WebIDBCallbacksImpl::create(request).release());
+ request->createWebCallbacks().release());
return request;
}
« no previous file with comments | « mojo/public/tools/bindings/mojom.gni ('k') | third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698