Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: services/service_manager/service_manager.h

Issue 2425563004: Support reading multiple InterfaceProviderSpecs from manifests (Closed)
Patch Set: . Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « services/service_manager/public/interfaces/service_manager.mojom ('k') | services/service_manager/service_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698