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

Side by Side Diff: content/child/navigator_connect/navigator_connect_dispatcher.h

Issue 1192713004: Update client side navigator.connect API to use ServicePortCollection [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 5 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
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_DISPATCHER_H_
6 #define CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_DISPATCHER_H_
7
8 #include "content/child/worker_thread_message_filter.h"
9
10 namespace content {
11
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);
17
18 private:
19 ~NavigatorConnectDispatcher() override;
20
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;
26
27 DISALLOW_COPY_AND_ASSIGN(NavigatorConnectDispatcher);
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/child/navigator_connect/navigator_connect_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698