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

Side by Side Diff: content/public/child/child_thread.h

Issue 2111353002: Move content's shell connections to the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PUBLIC_CHILD_CHILD_THREAD_H_ 5 #ifndef CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_
6 #define CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_ 6 #define CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/logging.h" 11 #include "base/logging.h"
11 #include "build/build_config.h" 12 #include "build/build_config.h"
12 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
13 #include "ipc/ipc_sender.h" 14 #include "ipc/ipc_sender.h"
14 15
15 #if defined(OS_WIN) 16 #if defined(OS_WIN)
16 #include <windows.h> 17 #include <windows.h>
17 #endif 18 #endif
18 19
19 namespace base { 20 namespace base {
20 struct UserMetricsAction; 21 struct UserMetricsAction;
21 } 22 }
22 23
23 namespace shell { 24 namespace shell {
24 class InterfaceProvider; 25 class InterfaceProvider;
25 class InterfaceRegistry; 26 class InterfaceRegistry;
26 } 27 }
27 28
28 namespace content { 29 namespace content {
29 30
30 class MojoShellConnection; 31 class ConnectionFilter;
32 class MojoShellConnection;
31 33
32 // An abstract base class that contains logic shared between most child 34 // An abstract base class that contains logic shared between most child
33 // processes of the embedder. 35 // processes of the embedder.
34 class CONTENT_EXPORT ChildThread : public IPC::Sender { 36 class CONTENT_EXPORT ChildThread : public IPC::Sender {
35 public: 37 public:
36 // Returns the one child thread for this process. Note that this can only be 38 // Returns the one child thread for this process. Note that this can only be
37 // accessed when running on the child thread itself. 39 // accessed when running on the child thread itself.
38 static ChildThread* Get(); 40 static ChildThread* Get();
39 41
40 ~ChildThread() override {} 42 ~ChildThread() override {}
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; 78 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0;
77 79
78 // Returns the InterfaceProvider that this process can use to bind 80 // Returns the InterfaceProvider that this process can use to bind
79 // interfaces exposed to it by the browser. 81 // interfaces exposed to it by the browser.
80 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; 82 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0;
81 }; 83 };
82 84
83 } // namespace content 85 } // namespace content
84 86
85 #endif // CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_ 87 #endif // CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698