OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H
_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H
_ |
6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H
_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H
_ |
7 | 7 |
8 #include "content/child/child_message_filter.h" | 8 #include "content/child/child_message_filter.h" |
9 | 9 |
| 10 namespace base { |
| 11 class MessageLoopProxy; |
| 12 } |
| 13 |
10 namespace content { | 14 namespace content { |
11 | 15 |
12 class EmbeddedWorkerContextMessageFilter : public ChildMessageFilter { | 16 class EmbeddedWorkerContextMessageFilter : public ChildMessageFilter { |
13 public: | 17 public: |
14 EmbeddedWorkerContextMessageFilter(); | 18 EmbeddedWorkerContextMessageFilter(); |
15 | 19 |
16 protected: | 20 protected: |
17 virtual ~EmbeddedWorkerContextMessageFilter(); | 21 virtual ~EmbeddedWorkerContextMessageFilter(); |
18 | 22 |
19 // ChildMessageFilter implementation: | 23 // ChildMessageFilter implementation: |
20 virtual base::TaskRunner* OverrideTaskRunnerForMessage( | 24 virtual base::TaskRunner* OverrideTaskRunnerForMessage( |
21 const IPC::Message& msg) OVERRIDE; | 25 const IPC::Message& msg) OVERRIDE; |
22 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 26 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
23 | 27 |
24 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_; | 28 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_; |
25 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 29 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
26 | 30 |
27 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextMessageFilter); | 31 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextMessageFilter); |
28 }; | 32 }; |
29 | 33 |
30 } // namespace content | 34 } // namespace content |
31 | 35 |
32 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTE
R_H_ | 36 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTE
R_H_ |
OLD | NEW |