OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ | 5 #ifndef CONTENT_COMMON_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ |
6 #define CONTENT_COMMON_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ | 6 #define CONTENT_COMMON_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 private: | 34 private: |
35 class IOThreadContext; | 35 class IOThreadContext; |
36 | 36 |
37 // ServiceManagerConnection: | 37 // ServiceManagerConnection: |
38 void Start() override; | 38 void Start() override; |
39 service_manager::Connector* GetConnector() override; | 39 service_manager::Connector* GetConnector() override; |
40 const service_manager::ServiceInfo& GetLocalInfo() const override; | 40 const service_manager::ServiceInfo& GetLocalInfo() const override; |
41 const service_manager::ServiceInfo& GetBrowserInfo() const override; | 41 const service_manager::ServiceInfo& GetBrowserInfo() const override; |
42 void SetConnectionLostClosure(const base::Closure& closure) override; | 42 void SetConnectionLostClosure(const base::Closure& closure) override; |
| 43 void SetupInterfaceRequestProxies( |
| 44 service_manager::InterfaceRegistry* registry, |
| 45 service_manager::InterfaceProvider* provider) override; |
43 int AddConnectionFilter(std::unique_ptr<ConnectionFilter> filter) override; | 46 int AddConnectionFilter(std::unique_ptr<ConnectionFilter> filter) override; |
44 void RemoveConnectionFilter(int filter_id) override; | 47 void RemoveConnectionFilter(int filter_id) override; |
45 void AddEmbeddedService(const std::string& name, | 48 void AddEmbeddedService(const std::string& name, |
46 const ServiceInfo& info) override; | 49 const ServiceInfo& info) override; |
47 void AddServiceRequestHandler( | 50 void AddServiceRequestHandler( |
48 const std::string& name, | 51 const std::string& name, |
49 const ServiceRequestHandler& handler) override; | 52 const ServiceRequestHandler& handler) override; |
50 int AddOnConnectHandler(const OnConnectHandler& handler) override; | 53 int AddOnConnectHandler(const OnConnectHandler& handler) override; |
51 void RemoveOnConnectHandler(int id) override; | 54 void RemoveOnConnectHandler(int id) override; |
52 | 55 |
(...skipping 18 matching lines...) Expand all Loading... |
71 std::map<int, OnConnectHandler> on_connect_handlers_; | 74 std::map<int, OnConnectHandler> on_connect_handlers_; |
72 | 75 |
73 base::WeakPtrFactory<ServiceManagerConnectionImpl> weak_factory_; | 76 base::WeakPtrFactory<ServiceManagerConnectionImpl> weak_factory_; |
74 | 77 |
75 DISALLOW_COPY_AND_ASSIGN(ServiceManagerConnectionImpl); | 78 DISALLOW_COPY_AND_ASSIGN(ServiceManagerConnectionImpl); |
76 }; | 79 }; |
77 | 80 |
78 } // namespace content | 81 } // namespace content |
79 | 82 |
80 #endif // CONTENT_COMMON_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ | 83 #endif // CONTENT_COMMON_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ |
OLD | NEW |