Index: services/video_capture/service.cc |
diff --git a/services/video_capture/service.cc b/services/video_capture/service.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f6714f3702d406953a8d517eee07e116d851f36e |
--- /dev/null |
+++ b/services/video_capture/service.cc |
@@ -0,0 +1,25 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "services/video_capture/service.h" |
+ |
+namespace video_capture { |
+ |
+VideoCaptureService::VideoCaptureService() |
+ : device_factory_(new VideoCaptureDeviceFactoryImpl()) {} |
+ |
+VideoCaptureService::~VideoCaptureService() = default; |
+ |
+bool VideoCaptureService::OnConnect(shell::Connection* connection) { |
+ connection->AddInterface<mojom::VideoCaptureDeviceFactory>(this); |
+ return true; |
+} |
+ |
+void VideoCaptureService::Create( |
+ const shell::Identity& remote_identity, |
+ mojom::VideoCaptureDeviceFactoryRequest request) { |
+ bindings_.AddBinding(device_factory_.get(), std::move(request)); |
+} |
+ |
+} // namespace video_capture |