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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_GEOFENCING_GEOFENCING_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_DISPATCHER_H_
6 #define CONTENT_CHILD_GEOFENCING_GEOFENCING_MESSAGE_FILTER_H_ 6 #define CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_DISPATCHER_H_
7 7
8 #include "content/child/child_message_filter.h" 8 #include "content/child/child_message_filter.h"
9 9
10 namespace base { 10 namespace base {
11 class MessageLoopProxy; 11 class MessageLoopProxy;
12 } 12 }
13 13
14 namespace content { 14 namespace content {
15 15
16 class ThreadSafeSender; 16 class ThreadSafeSender;
17 17
18 class GeofencingMessageFilter : public ChildMessageFilter { 18 class NavigatorConnectDispatcher : public ChildMessageFilter {
scheib 2014/12/05 05:49:50 Dispatcher or Filter? A Filter runs on IPC-IO thre
Marijn Kruisselbrink 2014/12/05 14:25:50 I don't know why some code calls it Dispatcher and
19 public: 19 public:
20 explicit GeofencingMessageFilter(ThreadSafeSender* thread_safe_sender); 20 explicit NavigatorConnectDispatcher(ThreadSafeSender* thread_safe_sender);
21 21
22 private: 22 private:
23 ~GeofencingMessageFilter() override; 23 ~NavigatorConnectDispatcher() override;
24 24
25 // ChildMessageFilter implementation: 25 // ChildMessageFilter implementation:
26 base::TaskRunner* OverrideTaskRunnerForMessage( 26 base::TaskRunner* OverrideTaskRunnerForMessage(
27 const IPC::Message& msg) override; 27 const IPC::Message& msg) override;
28 bool OnMessageReceived(const IPC::Message& msg) override; 28 bool OnMessageReceived(const IPC::Message& msg) override;
29 29
30 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_; 30 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_;
31 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 31 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(GeofencingMessageFilter); 33 DISALLOW_COPY_AND_ASSIGN(NavigatorConnectDispatcher);
34 }; 34 };
35 35
36 } // namespace content 36 } // namespace content
37 37
38 #endif // CONTENT_CHILD_GEOFENCING_GEOFENCING_MESSAGE_FILTER_H_ 38 #endif // CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698