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

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

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Require explicit wrapping when discarding map keys. 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/IDBFactory.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
index 91feeae33eed52682be5245d8791be97b556f8db..1b0b2f432ce63637ae7f3f0b57db0a721fc91026 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
@@ -38,12 +38,11 @@
#include "modules/indexeddb/IDBKey.h"
#include "modules/indexeddb/IDBTracing.h"
#include "modules/indexeddb/IndexedDBClient.h"
-#include "modules/indexeddb/WebIDBCallbacksImpl.h"
-#include "modules/indexeddb/WebIDBDatabaseCallbacksImpl.h"
#include "platform/Histogram.h"
#include "platform/weborigin/SecurityOrigin.h"
#include "public/platform/Platform.h"
#include "public/platform/WebSecurityOrigin.h"
+#include "public/platform/modules/indexeddb/WebIDBDatabaseCallbacks.h"
#include "public/platform/modules/indexeddb/WebIDBFactory.h"
#include <memory>
@@ -88,7 +87,7 @@ IDBRequest* IDBFactory::getDatabaseNames(ScriptState* scriptState,
}
Platform::current()->idbFactory()->getDatabaseNames(
- WebIDBCallbacksImpl::create(request).release(),
+ request->createWebCallbacks().release(),
WebSecurityOrigin(
scriptState->getExecutionContext()->getSecurityOrigin()));
return request;
@@ -135,9 +134,8 @@ IDBOpenDBRequest* IDBFactory::openInternal(ScriptState* scriptState,
}
Platform::current()->idbFactory()->open(
- name, version, transactionId,
- WebIDBCallbacksImpl::create(request).release(),
- WebIDBDatabaseCallbacksImpl::create(databaseCallbacks).release(),
+ name, version, transactionId, request->createWebCallbacks().release(),
+ databaseCallbacks->createWebCallbacks().release(),
WebSecurityOrigin(
scriptState->getExecutionContext()->getSecurityOrigin()));
return request;
@@ -177,7 +175,7 @@ IDBOpenDBRequest* IDBFactory::deleteDatabase(ScriptState* scriptState,
}
Platform::current()->idbFactory()->deleteDatabase(
- name, WebIDBCallbacksImpl::create(request).release(),
+ name, request->createWebCallbacks().release(),
WebSecurityOrigin(
scriptState->getExecutionContext()->getSecurityOrigin()));
return request;

Powered by Google App Engine
This is Rietveld 408576698