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
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H_
8 #include "content/child/child_message_filter.h"
11 class MessageLoopProxy;
16 class EmbeddedWorkerContextMessageFilter : public ChildMessageFilter {
18 EmbeddedWorkerContextMessageFilter();
21 virtual ~EmbeddedWorkerContextMessageFilter();
23 // ChildMessageFilter implementation:
24 virtual base::TaskRunner* OverrideTaskRunnerForMessage(
25 const IPC::Message& msg) OVERRIDE;
26 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
29 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_;
30 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
32 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextMessageFilter);
35 } // namespace content
37 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H_