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

Unified Diff: services/service_manager/public/cpp/service_context.h

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/service_manager/public/cpp/service.h ('k') | services/service_manager/public/cpp/service_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/service_manager/public/cpp/service_context.h
diff --git a/services/service_manager/public/cpp/service_context.h b/services/service_manager/public/cpp/service_context.h
index 8cfea216708d324a93a9cae89d99bc686ab35184..bec2ba18cc56eba078320abe2397218afb07e8b9 100644
--- a/services/service_manager/public/cpp/service_context.h
+++ b/services/service_manager/public/cpp/service_context.h
@@ -61,8 +61,7 @@ class ServiceContext : public mojom::Service {
~ServiceContext() override;
Connector* connector() { return connector_.get(); }
- const ServiceInfo& local_info() const { return local_info_; }
- const Identity& identity() const { return local_info_.identity; }
+ const Identity& identity() const { return identity_; }
// Specify a closure to be run when the Service calls QuitNow(), typically
// in response to Service::OnServiceManagerConnectionLost().
@@ -109,13 +108,11 @@ class ServiceContext : public mojom::Service {
friend class service_manager::Service;
// mojom::Service:
- void OnStart(const ServiceInfo& info,
- const OnStartCallback& callback) override;
- void OnBindInterface(
- const ServiceInfo& source_info,
- const std::string& interface_name,
- mojo::ScopedMessagePipeHandle interface_pipe,
- const OnBindInterfaceCallback& callback) override;
+ void OnStart(const Identity& info, const OnStartCallback& callback) override;
+ void OnBindInterface(const BindSourceInfo& source_info,
+ const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle interface_pipe,
+ const OnBindInterfaceCallback& callback) override;
void OnConnectionError();
@@ -126,7 +123,7 @@ class ServiceContext : public mojom::Service {
std::unique_ptr<service_manager::Service> service_;
mojo::Binding<mojom::Service> binding_;
std::unique_ptr<Connector> connector_;
- service_manager::ServiceInfo local_info_;
+ service_manager::Identity identity_;
// This instance's control interface to the service manager. Note that this
// is unbound and therefore invalid until OnStart() is called.
« no previous file with comments | « services/service_manager/public/cpp/service.h ('k') | services/service_manager/public/cpp/service_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698