OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SERVICES_SERVICE_MANAGER_SERVICE_MANAGER_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_SERVICE_MANAGER_H_ |
6 #define SERVICES_SERVICE_MANAGER_SERVICE_MANAGER_H_ | 6 #define SERVICES_SERVICE_MANAGER_SERVICE_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 void NotifyPIDAvailable(const Identity& identity, base::ProcessId pid); | 125 void NotifyPIDAvailable(const Identity& identity, base::ProcessId pid); |
126 | 126 |
127 // Attempt to complete the connection requested by |params| by connecting to | 127 // Attempt to complete the connection requested by |params| by connecting to |
128 // an existing instance. If there is an existing instance, |params| is taken, | 128 // an existing instance. If there is an existing instance, |params| is taken, |
129 // and this function returns true. | 129 // and this function returns true. |
130 bool ConnectToExistingInstance(std::unique_ptr<ConnectParams>* params); | 130 bool ConnectToExistingInstance(std::unique_ptr<ConnectParams>* params); |
131 | 131 |
132 Instance* CreateInstance(const Identity& source, | 132 Instance* CreateInstance(const Identity& source, |
133 const Identity& target, | 133 const Identity& target, |
134 const InterfaceProviderSpec& connection_spec); | 134 const InterfaceProviderSpecMap& specs); |
135 | 135 |
136 // Called from the instance implementing mojom::ServiceManager. | 136 // Called from the instance implementing mojom::ServiceManager. |
137 void AddListener(mojom::ServiceManagerListenerPtr listener); | 137 void AddListener(mojom::ServiceManagerListenerPtr listener); |
138 | 138 |
139 void CreateServiceWithFactory(const Identity& service_factory, | 139 void CreateServiceWithFactory(const Identity& service_factory, |
140 const std::string& name, | 140 const std::string& name, |
141 mojom::ServiceRequest request); | 141 mojom::ServiceRequest request); |
142 // Returns a running ServiceFactory for |service_factory_identity|. | 142 // Returns a running ServiceFactory for |service_factory_identity|. |
143 // If there is not one running one is started for |source_identity|. | 143 // If there is not one running one is started for |source_identity|. |
144 mojom::ServiceFactory* GetServiceFactory( | 144 mojom::ServiceFactory* GetServiceFactory( |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 base::WeakPtrFactory<ServiceManager> weak_ptr_factory_; | 186 base::WeakPtrFactory<ServiceManager> weak_ptr_factory_; |
187 | 187 |
188 DISALLOW_COPY_AND_ASSIGN(ServiceManager); | 188 DISALLOW_COPY_AND_ASSIGN(ServiceManager); |
189 }; | 189 }; |
190 | 190 |
191 mojom::Connector::ConnectCallback EmptyConnectCallback(); | 191 mojom::Connector::ConnectCallback EmptyConnectCallback(); |
192 | 192 |
193 } // namespace service_manager | 193 } // namespace service_manager |
194 | 194 |
195 #endif // SERVICES_SERVICE_MANAGER_SERVICE_MANAGER_H_ | 195 #endif // SERVICES_SERVICE_MANAGER_SERVICE_MANAGER_H_ |
OLD | NEW |