| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 bool Send(IPC::Message* msg) override; | 85 bool Send(IPC::Message* msg) override; |
| 86 | 86 |
| 87 // ChildThread implementation: | 87 // ChildThread implementation: |
| 88 #if defined(OS_WIN) | 88 #if defined(OS_WIN) |
| 89 void PreCacheFont(const LOGFONT& log_font) override; | 89 void PreCacheFont(const LOGFONT& log_font) override; |
| 90 void ReleaseCachedFonts() override; | 90 void ReleaseCachedFonts() override; |
| 91 #endif | 91 #endif |
| 92 void RecordAction(const base::UserMetricsAction& action) override; | 92 void RecordAction(const base::UserMetricsAction& action) override; |
| 93 void RecordComputedAction(const std::string& action) override; | 93 void RecordComputedAction(const std::string& action) override; |
| 94 ServiceManagerConnection* GetServiceManagerConnection() override; | 94 ServiceManagerConnection* GetServiceManagerConnection() override; |
| 95 service_manager::InterfaceRegistry* GetInterfaceRegistry() override; | |
| 96 service_manager::Connector* GetConnector() override; | 95 service_manager::Connector* GetConnector() override; |
| 97 | 96 |
| 98 // Returns the service_manager::ServiceInfo for the child process & the | 97 // Returns the service_manager::ServiceInfo for the child process & the |
| 99 // browser process, once available. | 98 // browser process, once available. |
| 100 const service_manager::ServiceInfo& GetChildServiceInfo() const; | 99 const service_manager::ServiceInfo& GetChildServiceInfo() const; |
| 101 const service_manager::ServiceInfo& GetBrowserServiceInfo() const; | 100 const service_manager::ServiceInfo& GetBrowserServiceInfo() const; |
| 102 bool IsConnectedToBrowser() const; | 101 bool IsConnectedToBrowser() const; |
| 103 | 102 |
| 104 IPC::SyncChannel* channel() { return channel_.get(); } | 103 IPC::SyncChannel* channel() { return channel_.get(); } |
| 105 | 104 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 void GetAssociatedInterface( | 238 void GetAssociatedInterface( |
| 240 const std::string& name, | 239 const std::string& name, |
| 241 mojom::AssociatedInterfaceAssociatedRequest request) override; | 240 mojom::AssociatedInterfaceAssociatedRequest request) override; |
| 242 | 241 |
| 243 // Called when a connection is received from another service. When that other | 242 // Called when a connection is received from another service. When that other |
| 244 // service is the browser process, stores the remote's info. | 243 // service is the browser process, stores the remote's info. |
| 245 void OnServiceConnect(const service_manager::ServiceInfo& local_info, | 244 void OnServiceConnect(const service_manager::ServiceInfo& local_info, |
| 246 const service_manager::ServiceInfo& remote_info); | 245 const service_manager::ServiceInfo& remote_info); |
| 247 | 246 |
| 248 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_; | 247 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_; |
| 249 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; | |
| 250 std::unique_ptr<ServiceManagerConnection> service_manager_connection_; | 248 std::unique_ptr<ServiceManagerConnection> service_manager_connection_; |
| 251 | 249 |
| 252 bool connected_to_browser_ = false; | 250 bool connected_to_browser_ = false; |
| 253 service_manager::ServiceInfo child_info_; | 251 service_manager::ServiceInfo child_info_; |
| 254 service_manager::ServiceInfo browser_info_; | 252 service_manager::ServiceInfo browser_info_; |
| 255 | 253 |
| 256 mojo::AssociatedBinding<mojom::RouteProvider> route_provider_binding_; | 254 mojo::AssociatedBinding<mojom::RouteProvider> route_provider_binding_; |
| 257 mojo::AssociatedBindingSet<mojom::AssociatedInterfaceProvider, int32_t> | 255 mojo::AssociatedBindingSet<mojom::AssociatedInterfaceProvider, int32_t> |
| 258 associated_interface_provider_bindings_; | 256 associated_interface_provider_bindings_; |
| 259 mojom::RouteProviderAssociatedPtr remote_route_provider_; | 257 mojom::RouteProviderAssociatedPtr remote_route_provider_; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 | 331 |
| 334 private: | 332 private: |
| 335 struct Options options_; | 333 struct Options options_; |
| 336 | 334 |
| 337 DISALLOW_COPY_AND_ASSIGN(Builder); | 335 DISALLOW_COPY_AND_ASSIGN(Builder); |
| 338 }; | 336 }; |
| 339 | 337 |
| 340 } // namespace content | 338 } // namespace content |
| 341 | 339 |
| 342 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 340 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
| OLD | NEW |