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

Unified Diff: content/child/indexed_db/webidbfactory_impl.cc

Issue 2320213004: Port IndexedDB open() and database callbacks to Mojo. (Closed)
Patch Set: Make DatabaseClient an associated interface. Created 4 years, 3 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 | « content/child/indexed_db/webidbfactory_impl.h ('k') | content/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/indexed_db/webidbfactory_impl.cc
diff --git a/content/child/indexed_db/webidbfactory_impl.cc b/content/child/indexed_db/webidbfactory_impl.cc
index b803dc2b1330c0fbd72afdc9a810a18ab801a1f7..9056eac48d0a2aef68e3bf1618bdba37232decce 100644
--- a/content/child/indexed_db/webidbfactory_impl.cc
+++ b/content/child/indexed_db/webidbfactory_impl.cc
@@ -9,10 +9,10 @@
#include "content/child/thread_safe_sender.h"
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
#include "third_party/WebKit/public/platform/WebString.h"
+#include "third_party/WebKit/public/platform/modules/indexeddb/indexed_db.mojom.h"
using blink::WebIDBCallbacks;
using blink::WebIDBDatabase;
-using blink::WebIDBDatabaseCallbacks;
using blink::WebSecurityOrigin;
using blink::WebString;
@@ -30,17 +30,18 @@ void WebIDBFactoryImpl::getDatabaseNames(WebIDBCallbacks* callbacks,
dispatcher->RequestIDBFactoryGetDatabaseNames(callbacks, origin);
}
-void WebIDBFactoryImpl::open(const WebString& name,
- long long version,
- long long transaction_id,
- WebIDBCallbacks* callbacks,
- WebIDBDatabaseCallbacks* database_callbacks,
- const WebSecurityOrigin& origin) {
+void WebIDBFactoryImpl::open(
+ const WebString& name,
+ long long version,
+ long long transaction_id,
+ WebIDBCallbacks* callbacks,
+ mojo::ScopedInterfaceEndpointHandle* client_interface_endpoint,
+ const WebSecurityOrigin& origin) {
IndexedDBDispatcher* dispatcher =
IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_.get());
-
- dispatcher->RequestIDBFactoryOpen(name, version, transaction_id, callbacks,
- database_callbacks, origin);
+ dispatcher->RequestIDBFactoryOpen(name.utf8(), version, transaction_id,
+ callbacks, client_interface_endpoint,
+ origin);
}
void WebIDBFactoryImpl::deleteDatabase(const WebString& name,
« no previous file with comments | « content/child/indexed_db/webidbfactory_impl.h ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698