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

Unified Diff: mash/package/mash_packaged_service.h

Issue 2795883002: Eliminate OnConnect usage (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 | « content/public/test/test_service.cc ('k') | mash/package/mash_packaged_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/package/mash_packaged_service.h
diff --git a/mash/package/mash_packaged_service.h b/mash/package/mash_packaged_service.h
index 066f6d1447a9de6aff92f175670ed3e22268a525..a136e7593ec6c2f77c191377ff9a00badf0f41e4 100644
--- a/mash/package/mash_packaged_service.h
+++ b/mash/package/mash_packaged_service.h
@@ -8,6 +8,7 @@
#include <memory>
#include "mojo/public/cpp/bindings/binding_set.h"
+#include "services/service_manager/public/cpp/binder_registry.h"
#include "services/service_manager/public/cpp/interface_factory.h"
#include "services/service_manager/public/cpp/service.h"
#include "services/service_manager/public/interfaces/service_factory.mojom.h"
@@ -41,8 +42,9 @@ class MashPackagedService : public service_manager::Service,
~MashPackagedService() override;
// service_manager::Service:
- bool OnConnect(const service_manager::ServiceInfo& remote_info,
- service_manager::InterfaceRegistry* registry) override;
+ void OnBindInterface(const service_manager::ServiceInfo& source_info,
+ const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle interface_pipe) override;
// service_manager::InterfaceFactory<ServiceFactory>
void Create(const service_manager::Identity& remote_identity,
@@ -57,6 +59,7 @@ class MashPackagedService : public service_manager::Service,
const std::string& name);
std::unique_ptr<service_manager::ServiceContext> context_;
+ service_manager::BinderRegistry registry_;
mojo::BindingSet<ServiceFactory> service_factory_bindings_;
DISALLOW_COPY_AND_ASSIGN(MashPackagedService);
« no previous file with comments | « content/public/test/test_service.cc ('k') | mash/package/mash_packaged_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698