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

Unified Diff: media/mojo/services/media_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 | « mash/package/mash_packaged_service.cc ('k') | media/mojo/services/media_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/media_service.h
diff --git a/media/mojo/services/media_service.h b/media/mojo/services/media_service.h
index 08c4885c51c433a84779ffff7c7fed8cf4d3e78d..441717628ed4081e460cb4484fae005a26b2e5c1 100644
--- a/media/mojo/services/media_service.h
+++ b/media/mojo/services/media_service.h
@@ -16,6 +16,7 @@
#include "media/mojo/interfaces/media_service.mojom.h"
#include "media/mojo/services/media_mojo_export.h"
#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/cpp/service_context.h"
@@ -39,8 +40,9 @@ class MEDIA_MOJO_EXPORT MediaService
private:
// service_manager::Service implementation.
void OnStart() final;
- bool OnConnect(const service_manager::ServiceInfo& remote_info,
- service_manager::InterfaceRegistry* registry) final;
+ void OnBindInterface(const service_manager::ServiceInfo& source_info,
+ const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle interface_pipe) override;
bool OnServiceManagerConnectionLost() final;
// service_manager::InterfaceFactory<mojom::MediaService> implementation.
@@ -60,6 +62,7 @@ class MEDIA_MOJO_EXPORT MediaService
scoped_refptr<MediaLog> media_log_;
std::unique_ptr<service_manager::ServiceContextRefFactory> ref_factory_;
+ service_manager::BinderRegistry registry_;
mojo::BindingSet<mojom::MediaService> bindings_;
};
« no previous file with comments | « mash/package/mash_packaged_service.cc ('k') | media/mojo/services/media_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698