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

Unified Diff: content/child/navigator_connect/navigator_connect_dispatcher.h

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
Index: content/child/navigator_connect/navigator_connect_dispatcher.h
diff --git a/content/child/bluetooth/bluetooth_message_filter.h b/content/child/navigator_connect/navigator_connect_dispatcher.h
similarity index 53%
copy from content/child/bluetooth/bluetooth_message_filter.h
copy to content/child/navigator_connect/navigator_connect_dispatcher.h
index db18380688f9edc31761e2644d65f44cf99b3d16..3455912d71b2fbf44e688182cb017560de80b170 100644
--- a/content/child/bluetooth/bluetooth_message_filter.h
+++ b/content/child/navigator_connect/navigator_connect_dispatcher.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_CHILD_BLUETOOTH_BLUETOOTH_MESSAGE_FILTER_H_
-#define CONTENT_CHILD_BLUETOOTH_BLUETOOTH_MESSAGE_FILTER_H_
+#ifndef CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_DISPATCHER_H_
+#define CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_DISPATCHER_H_
#include "content/child/child_message_filter.h"
@@ -15,12 +15,14 @@ namespace content {
class ThreadSafeSender;
-class BluetoothMessageFilter : public ChildMessageFilter {
+// Receives IPC messages from the browser process and dispatches them to the
+// correct thread specific NavigatorConnectProvider.
+class NavigatorConnectDispatcher : public ChildMessageFilter {
public:
- explicit BluetoothMessageFilter(ThreadSafeSender* thread_safe_sender);
+ explicit NavigatorConnectDispatcher(ThreadSafeSender* thread_safe_sender);
private:
- ~BluetoothMessageFilter() override;
+ ~NavigatorConnectDispatcher() override;
// ChildMessageFilter implementation:
base::TaskRunner* OverrideTaskRunnerForMessage(
@@ -30,9 +32,9 @@ class BluetoothMessageFilter : public ChildMessageFilter {
scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_;
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
- DISALLOW_COPY_AND_ASSIGN(BluetoothMessageFilter);
+ DISALLOW_COPY_AND_ASSIGN(NavigatorConnectDispatcher);
};
} // namespace content
-#endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_MESSAGE_FILTER_H_
+#endif // CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_DISPATCHER_H_
« no previous file with comments | « content/child/navigator_connect/OWNERS ('k') | content/child/navigator_connect/navigator_connect_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698