Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / content / child / navigator_connect / navigator_connect_dispatcher.h
blob0044b515db669df0f808057d8041103f9e1abd83
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_DISPATCHER_H_
6 #define CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_DISPATCHER_H_
8 #include "content/child/worker_thread_message_filter.h"
10 namespace content {
12 // Receives IPC messages from the browser process and dispatches them to the
13 // correct thread specific NavigatorConnectProvider.
14 class NavigatorConnectDispatcher : public WorkerThreadMessageFilter {
15 public:
16 explicit NavigatorConnectDispatcher(ThreadSafeSender* thread_safe_sender);
18 private:
19 ~NavigatorConnectDispatcher() override;
21 // WorkerThreadMessageFilter:
22 bool ShouldHandleMessage(const IPC::Message& msg) const override;
23 void OnFilteredMessageReceived(const IPC::Message& msg) override;
24 bool GetWorkerThreadIdForMessage(const IPC::Message& msg,
25 int* ipc_thread_id) override;
27 DISALLOW_COPY_AND_ASSIGN(NavigatorConnectDispatcher);
30 } // namespace content
32 #endif // CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_DISPATCHER_H_