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

Unified Diff: content/child/child_thread.cc

Issue 781723002: Pass navigator.connect calls through to the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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/child_thread.h ('k') | content/child/navigator_connect/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread.cc
diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc
index 0380df2b122d93978a0cb6451b3abe760e5207b9..844a562bf6a08fc480fd5e6ab5016838da3f2e7c 100644
--- a/content/child/child_thread.cc
+++ b/content/child/child_thread.cc
@@ -37,6 +37,7 @@
#include "content/child/fileapi/webfilesystem_impl.h"
#include "content/child/geofencing/geofencing_message_filter.h"
#include "content/child/mojo/mojo_application.h"
+#include "content/child/navigator_connect/navigator_connect_dispatcher.h"
#include "content/child/notifications/notification_dispatcher.h"
#include "content/child/power_monitor_broadcast_source.h"
#include "content/child/push_messaging/push_dispatcher.h"
@@ -298,6 +299,8 @@ void ChildThread::Init(const Options& options) {
notification_dispatcher_ =
new NotificationDispatcher(thread_safe_sender_.get());
push_dispatcher_ = new PushDispatcher(thread_safe_sender_.get());
+ navigator_connect_dispatcher_ =
+ new NavigatorConnectDispatcher(thread_safe_sender_.get());
channel_->AddFilter(histogram_message_filter_.get());
channel_->AddFilter(sync_message_filter_.get());
@@ -308,6 +311,7 @@ void ChildThread::Init(const Options& options) {
channel_->AddFilter(service_worker_message_filter_->GetFilter());
channel_->AddFilter(geofencing_message_filter_->GetFilter());
channel_->AddFilter(bluetooth_message_filter_->GetFilter());
+ channel_->AddFilter(navigator_connect_dispatcher_->GetFilter());
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kSingleProcess)) {
« no previous file with comments | « content/child/child_thread.h ('k') | content/child/navigator_connect/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698