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 |
| 7 namespace video_capture { |
| 8 |
| 9 VideoCaptureService::VideoCaptureService() |
| 10 : device_factory_(new VideoCaptureDeviceFactoryImpl()) {} |
| 11 |
| 12 VideoCaptureService::~VideoCaptureService() = default; |
| 13 |
| 14 bool VideoCaptureService::OnConnect(shell::Connection* connection) { |
| 15 connection->AddInterface<mojom::VideoCaptureDeviceFactory>(this); |
| 16 return true; |
| 17 } |
| 18 |
| 19 void VideoCaptureService::Create( |
| 20 const shell::Identity& remote_identity, |
| 21 mojom::VideoCaptureDeviceFactoryRequest request) { |
| 22 bindings_.AddBinding(device_factory_.get(), std::move(request)); |
| 23 } |
| 24 |
| 25 } // namespace video_capture |
OLD | NEW |