OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "services/video_capture/service.h" | |
6 #include "services/video_capture/video_capture_device_factory_impl.h" | |
7 | |
8 namespace video_capture { | |
9 | |
10 VideoCaptureService::VideoCaptureService() | |
11 : device_factory_(new VideoCaptureDeviceFactoryImpl()) {} | |
yzshen1
2016/08/12 17:46:50
It seems you could make this member a VideoCapture
chfremer
2016/08/12 18:32:27
Done.
| |
12 | |
13 VideoCaptureService::~VideoCaptureService() = default; | |
14 | |
15 bool VideoCaptureService::OnConnect(shell::Connection* connection) { | |
16 connection->AddInterface<mojom::VideoCaptureDeviceFactory>(this); | |
17 return true; | |
18 } | |
19 | |
20 void VideoCaptureService::Create( | |
21 const shell::Identity& remote_identity, | |
22 mojom::VideoCaptureDeviceFactoryRequest request) { | |
23 bindings_.AddBinding(device_factory_.get(), std::move(request)); | |
24 } | |
25 | |
26 } // namespace video_capture | |
OLD | NEW |