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

Unified Diff: content/browser/indexed_db/indexed_db_dispatcher_host.cc

Issue 2727733004: [IndexedDB] Closing mojo connections when renderer quits (Closed)
Patch Set: comments, still figuring out how to test Created 3 years, 10 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: content/browser/indexed_db/indexed_db_dispatcher_host.cc
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.cc b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
index f1663a5dc6b57e552e03365b929a9f7588911214..59420c6c740a1e970382ad411c1dc38d2e58bdca 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
@@ -53,6 +53,18 @@ void IndexedDBDispatcherHost::AddBinding(
bindings_.AddBinding(this, std::move(request));
}
+void IndexedDBDispatcherHost::AddDatabaseBinding(
+ std::unique_ptr<::indexed_db::mojom::Database> database,
+ ::indexed_db::mojom::DatabaseAssociatedRequest request) {
+ database_bindings_.AddBinding(std::move(database), std::move(request));
+}
+
+void IndexedDBDispatcherHost::AddCursorBinding(
+ std::unique_ptr<::indexed_db::mojom::Cursor> cursor,
+ ::indexed_db::mojom::CursorAssociatedRequest request) {
+ cursor_bindings_.AddBinding(std::move(cursor), std::move(request));
+}
+
std::string IndexedDBDispatcherHost::HoldBlobData(
const IndexedDBBlobInfo& blob_info) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);

Powered by Google App Engine
This is Rietveld 408576698