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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBIndex.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
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 ce580c2e5411e7d47b9c6da48bd0b3a3b70ac9dc..a58e63138dc825cccb37bd747aedeabb442372b0 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>
@@ -163,7 +162,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;
}
@@ -201,7 +200,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;
}
@@ -242,7 +241,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;
}
@@ -329,7 +328,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;
}
@@ -371,7 +370,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