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

Unified Diff: services/video_capture/service_impl.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 | « services/ui/ws/window_tree_client_unittest.cc ('k') | services/video_capture/service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/video_capture/service_impl.h
diff --git a/services/video_capture/service_impl.h b/services/video_capture/service_impl.h
index 0b7a611f74415e96287580d55bde06a8972bc451..a4aef2add3d5e41955f0b39bb1245d961bd3aa0a 100644
--- a/services/video_capture/service_impl.h
+++ b/services/video_capture/service_impl.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/video_capture/public/interfaces/service.mojom.h"
@@ -25,8 +26,9 @@ class ServiceImpl : public service_manager::Service,
~ServiceImpl() 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<video_capture::mojom::Service>:
void Create(const service_manager::Identity& remote_identity,
@@ -40,6 +42,7 @@ class ServiceImpl : public service_manager::Service,
void LazyInitializeDeviceFactory();
void LazyInitializeFakeDeviceFactory();
+ service_manager::BinderRegistry registry_;
mojo::BindingSet<mojom::Service> service_bindings_;
mojo::BindingSet<mojom::DeviceFactory> factory_bindings_;
mojo::BindingSet<mojom::DeviceFactory> fake_factory_bindings_;
« no previous file with comments | « services/ui/ws/window_tree_client_unittest.cc ('k') | services/video_capture/service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698