OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHILD_CHILD_THREAD_IMPL_H_ | 5 #ifndef CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 // ChildThread implementation: | 91 // ChildThread implementation: |
92 #if defined(OS_WIN) | 92 #if defined(OS_WIN) |
93 void PreCacheFont(const LOGFONT& log_font) override; | 93 void PreCacheFont(const LOGFONT& log_font) override; |
94 void ReleaseCachedFonts() override; | 94 void ReleaseCachedFonts() override; |
95 #endif | 95 #endif |
96 void RecordAction(const base::UserMetricsAction& action) override; | 96 void RecordAction(const base::UserMetricsAction& action) override; |
97 void RecordComputedAction(const std::string& action) override; | 97 void RecordComputedAction(const std::string& action) override; |
98 ServiceManagerConnection* GetServiceManagerConnection() override; | 98 ServiceManagerConnection* GetServiceManagerConnection() override; |
99 service_manager::InterfaceRegistry* GetInterfaceRegistry() override; | 99 service_manager::InterfaceRegistry* GetInterfaceRegistry() override; |
100 service_manager::InterfaceProvider* GetRemoteInterfaces() override; | 100 service_manager::Connector* GetConnector() override; |
101 | 101 |
102 // Returns the service_manager::ServiceInfo for the child process & the | 102 // Returns the service_manager::ServiceInfo for the child process & the |
103 // browser process, once available. | 103 // browser process, once available. |
104 const service_manager::ServiceInfo& GetChildServiceInfo() const; | 104 const service_manager::ServiceInfo& GetChildServiceInfo() const; |
105 const service_manager::ServiceInfo& GetBrowserServiceInfo() const; | 105 const service_manager::ServiceInfo& GetBrowserServiceInfo() const; |
106 bool IsConnectedToBrowser() const; | 106 bool IsConnectedToBrowser() const; |
107 | 107 |
108 IPC::SyncChannel* channel() { return channel_.get(); } | 108 IPC::SyncChannel* channel() { return channel_.get(); } |
109 | 109 |
110 IPC::MessageRouter* GetRouter(); | 110 IPC::MessageRouter* GetRouter(); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 const std::string& name, | 244 const std::string& name, |
245 mojom::AssociatedInterfaceAssociatedRequest request) override; | 245 mojom::AssociatedInterfaceAssociatedRequest request) override; |
246 | 246 |
247 // Called when a connection is received from another service. When that other | 247 // Called when a connection is received from another service. When that other |
248 // service is the browser process, stores the remote's info. | 248 // service is the browser process, stores the remote's info. |
249 void OnServiceConnect(const service_manager::ServiceInfo& local_info, | 249 void OnServiceConnect(const service_manager::ServiceInfo& local_info, |
250 const service_manager::ServiceInfo& remote_info); | 250 const service_manager::ServiceInfo& remote_info); |
251 | 251 |
252 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_; | 252 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_; |
253 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; | 253 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; |
254 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_; | |
255 std::unique_ptr<ServiceManagerConnection> service_manager_connection_; | 254 std::unique_ptr<ServiceManagerConnection> service_manager_connection_; |
256 std::unique_ptr<service_manager::Connection> browser_connection_; | 255 std::unique_ptr<service_manager::Connection> browser_connection_; |
257 | 256 |
258 bool connected_to_browser_ = false; | 257 bool connected_to_browser_ = false; |
259 service_manager::ServiceInfo child_info_; | 258 service_manager::ServiceInfo child_info_; |
260 service_manager::ServiceInfo browser_info_; | 259 service_manager::ServiceInfo browser_info_; |
261 | 260 |
262 mojo::AssociatedBinding<mojom::RouteProvider> route_provider_binding_; | 261 mojo::AssociatedBinding<mojom::RouteProvider> route_provider_binding_; |
263 mojo::AssociatedBindingSet<mojom::AssociatedInterfaceProvider, int32_t> | 262 mojo::AssociatedBindingSet<mojom::AssociatedInterfaceProvider, int32_t> |
264 associated_interface_provider_bindings_; | 263 associated_interface_provider_bindings_; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 338 |
340 private: | 339 private: |
341 struct Options options_; | 340 struct Options options_; |
342 | 341 |
343 DISALLOW_COPY_AND_ASSIGN(Builder); | 342 DISALLOW_COPY_AND_ASSIGN(Builder); |
344 }; | 343 }; |
345 | 344 |
346 } // namespace content | 345 } // namespace content |
347 | 346 |
348 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 347 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
OLD | NEW |