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

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

Issue 2611183006: Service Manager: Miscellaneous catalog cleanup (Closed)
Patch Set: Created 3 years, 11 months 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 // Callback when remote Catalog resolves mojo:foo to mojo:bar. 149 // Callback when remote Catalog resolves mojo:foo to mojo:bar.
150 // |params| are the params passed to Connect(). 150 // |params| are the params passed to Connect().
151 // |service| if provided is a ServicePtr which should be used to manage the 151 // |service| if provided is a ServicePtr which should be used to manage the
152 // new application instance. This may be null. 152 // new application instance. This may be null.
153 // |result| contains the result of the resolve operation. 153 // |result| contains the result of the resolve operation.
154 void OnGotResolvedName(std::unique_ptr<ConnectParams> params, 154 void OnGotResolvedName(std::unique_ptr<ConnectParams> params,
155 mojom::ServicePtr service, 155 mojom::ServicePtr service,
156 bool has_source_instance, 156 bool has_source_instance,
157 base::WeakPtr<Instance> source_instance, 157 base::WeakPtr<Instance> source_instance,
158 mojom::ResolveResultPtr result); 158 mojom::ResolveResultPtr result,
159 mojom::ResolveResultPtr parent);
159 160
160 base::WeakPtr<ServiceManager> GetWeakPtr(); 161 base::WeakPtr<ServiceManager> GetWeakPtr();
161 162
162 std::unique_ptr<ServiceOverrides> service_overrides_; 163 std::unique_ptr<ServiceOverrides> service_overrides_;
163 164
164 // Ownership of all Instances. 165 // Ownership of all Instances.
165 using InstanceMap = std::map<Instance*, std::unique_ptr<Instance>>; 166 using InstanceMap = std::map<Instance*, std::unique_ptr<Instance>>;
166 InstanceMap instances_; 167 InstanceMap instances_;
167 168
168 // Maps service identities to reachable instances. Note that the Instance* 169 // Maps service identities to reachable instances. Note that the Instance*
(...skipping 18 matching lines...) Expand all
187 base::WeakPtrFactory<ServiceManager> weak_ptr_factory_; 188 base::WeakPtrFactory<ServiceManager> weak_ptr_factory_;
188 189
189 DISALLOW_COPY_AND_ASSIGN(ServiceManager); 190 DISALLOW_COPY_AND_ASSIGN(ServiceManager);
190 }; 191 };
191 192
192 mojom::Connector::ConnectCallback EmptyConnectCallback(); 193 mojom::Connector::ConnectCallback EmptyConnectCallback();
193 194
194 } // namespace service_manager 195 } // namespace service_manager
195 196
196 #endif // SERVICES_SERVICE_MANAGER_SERVICE_MANAGER_H_ 197 #endif // SERVICES_SERVICE_MANAGER_SERVICE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698