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

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

Issue 2446313003: Revise InterfaceRegistry API to support filtering interfaces @ Bind() time. (Closed)
Patch Set: . Created 4 years, 2 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
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 19c5e7c9af01b0c5e7c635d9e17161ebdacc5963..597aa05d1efad708d9f83de360e865d9e8845e2c 100644
--- a/services/service_manager/public/cpp/service_context.h
+++ b/services/service_manager/public/cpp/service_context.h
@@ -56,7 +56,7 @@ class ServiceContext : public mojom::Service {
~ServiceContext() override;
Connector* connector() { return connector_.get(); }
- const Identity& identity() { return identity_; }
+ const Identity& identity() { return local_info_.identity; }
// Specify a function to be called when the connection to the service manager
// is lost.
@@ -69,9 +69,7 @@ class ServiceContext : public mojom::Service {
void OnStart(const ServiceInfo& info,
const OnStartCallback& callback) override;
void OnConnect(const ServiceInfo& source_info,
- mojom::InterfaceProviderRequest interfaces,
- const InterfaceSet& allowed_interfaces,
- const CapabilitySet& allowed_capabilities) override;
+ mojom::InterfaceProviderRequest interfaces) override;
void OnConnectionError();
@@ -89,7 +87,7 @@ class ServiceContext : public mojom::Service {
service_manager::Service* service_;
mojo::Binding<mojom::Service> binding_;
std::unique_ptr<Connector> connector_;
- service_manager::Identity identity_;
+ service_manager::ServiceInfo local_info_;
bool should_run_connection_lost_closure_ = false;
base::Closure connection_lost_closure_;

Powered by Google App Engine
This is Rietveld 408576698