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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBCursor.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/IDBCursor.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp
index be277f32cdaa835944c850f9dd449f6b33a7e7fc..dddde9ec7b6f41cbaed1f8c8817db46e1d5f4968 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,
@@ -319,7 +318,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,
@@ -369,7 +368,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;
}

Powered by Google App Engine
This is Rietveld 408576698