OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "ipc/ipc_sender.h" | 13 #include "ipc/ipc_sender.h" |
14 | 14 |
15 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
16 #include <windows.h> | 16 #include <windows.h> |
17 #endif | 17 #endif |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 struct UserMetricsAction; | 20 struct UserMetricsAction; |
21 } | 21 } |
22 | 22 |
23 namespace service_manager { | 23 namespace service_manager { |
24 class Connector; | 24 class Connector; |
25 class InterfaceRegistry; | |
26 } | 25 } |
27 | 26 |
28 namespace content { | 27 namespace content { |
29 | 28 |
30 class ServiceManagerConnection; | 29 class ServiceManagerConnection; |
31 | 30 |
32 // An abstract base class that contains logic shared between most child | 31 // An abstract base class that contains logic shared between most child |
33 // processes of the embedder. | 32 // processes of the embedder. |
34 class CONTENT_EXPORT ChildThread : public IPC::Sender { | 33 class CONTENT_EXPORT ChildThread : public IPC::Sender { |
35 public: | 34 public: |
(...skipping 28 matching lines...) Expand all Loading... |
64 | 63 |
65 // Sends over a string to be recorded by user metrics as a computed action. | 64 // Sends over a string to be recorded by user metrics as a computed action. |
66 // When you use this you need to also update the rules for extracting known | 65 // When you use this you need to also update the rules for extracting known |
67 // actions in chrome/tools/extract_actions.py. | 66 // actions in chrome/tools/extract_actions.py. |
68 virtual void RecordComputedAction(const std::string& action) = 0; | 67 virtual void RecordComputedAction(const std::string& action) = 0; |
69 | 68 |
70 // Returns the ServiceManagerConnection for the thread (from which a | 69 // Returns the ServiceManagerConnection for the thread (from which a |
71 // service_manager::Connector can be obtained). | 70 // service_manager::Connector can be obtained). |
72 virtual ServiceManagerConnection* GetServiceManagerConnection() = 0; | 71 virtual ServiceManagerConnection* GetServiceManagerConnection() = 0; |
73 | 72 |
74 // Returns the InterfaceRegistry that this process uses to expose interfaces | |
75 // to the browser. | |
76 virtual service_manager::InterfaceRegistry* GetInterfaceRegistry() = 0; | |
77 | |
78 // Returns a connector that can be used to bind interfaces exposed by other | 73 // Returns a connector that can be used to bind interfaces exposed by other |
79 // services. | 74 // services. |
80 virtual service_manager::Connector* GetConnector() = 0; | 75 virtual service_manager::Connector* GetConnector() = 0; |
81 }; | 76 }; |
82 | 77 |
83 } // namespace content | 78 } // namespace content |
84 | 79 |
85 #endif // CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_ | 80 #endif // CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_ |
OLD | NEW |