OLD | NEW |
---|---|
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_ |
OLD | NEW |