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

Side by Side Diff: content/renderer/service_worker/embedded_worker_context_message_filter.h

Issue 245443005: Move IPC::MessageFilter and router to a separate file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gn build Created 6 years, 8 months 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 | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/shared_worker/embedded_shared_worker_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698