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"
12 class EmbeddedWorkerContextMessageFilter : public ChildMessageFilter {
14 EmbeddedWorkerContextMessageFilter();
17 virtual ~EmbeddedWorkerContextMessageFilter();
19 // ChildMessageFilter implementation:
20 virtual base::TaskRunner* OverrideTaskRunnerForMessage(
21 const IPC::Message& msg) OVERRIDE;
22 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
24 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_;
25 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
27 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerContextMessageFilter);
30 } // namespace content
32 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_CONTEXT_MESSAGE_FILTER_H_