| Index: services/video_capture/video_capture_service.cc
|
| diff --git a/services/video_capture/video_capture_service.cc b/services/video_capture/video_capture_service.cc
|
| index e025b6b4903cf177e072c8f99e100bba4d06b9ac..fb6de619659b7bc4ee3584de9661e86d51afbae3 100644
|
| --- a/services/video_capture/video_capture_service.cc
|
| +++ b/services/video_capture/video_capture_service.cc
|
| @@ -3,23 +3,34 @@
|
| // found in the LICENSE file.
|
|
|
| #include "services/video_capture/video_capture_service.h"
|
| +#include "services/video_capture/service_configurator_impl.h"
|
| +#include "services/video_capture/video_capture_device_factory_impl.h"
|
|
|
| namespace video_capture {
|
|
|
| -VideoCaptureService::VideoCaptureService() = default;
|
| +VideoCaptureService::VideoCaptureService() {
|
| + device_factory_.reset(new VideoCaptureDeviceFactoryImpl());
|
| + configurator_.reset(new ServiceConfiguratorImpl(device_factory_.get()));
|
| +}
|
|
|
| VideoCaptureService::~VideoCaptureService() = default;
|
|
|
| bool VideoCaptureService::OnConnect(const shell::Identity& remote_identity,
|
| shell::InterfaceRegistry* registry) {
|
| + registry->AddInterface<mojom::ServiceConfigurator>(this);
|
| registry->AddInterface<mojom::VideoCaptureDeviceFactory>(this);
|
| return true;
|
| }
|
|
|
| +void VideoCaptureService::Create(const shell::Identity& remote_identity,
|
| + mojom::ServiceConfiguratorRequest request) {
|
| + configurator_bindings_.AddBinding(configurator_.get(), std::move(request));
|
| +}
|
| +
|
| void VideoCaptureService::Create(
|
| const shell::Identity& remote_identity,
|
| mojom::VideoCaptureDeviceFactoryRequest request) {
|
| - bindings_.AddBinding(&device_factory_, std::move(request));
|
| + factory_bindings_.AddBinding(device_factory_.get(), std::move(request));
|
| }
|
|
|
| } // namespace video_capture
|
|
|