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

Unified Diff: services/video_capture/video_capture_service.cc

Issue 2224103002: Package video capture skeleton as Mojo Shell Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@VideoMojoSkeleton2
Patch Set: ben's comments Created 4 years, 4 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/video_capture/video_capture_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..e025b6b4903cf177e072c8f99e100bba4d06b9ac
--- /dev/null
+++ b/services/video_capture/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/video_capture_service.h"
+
+namespace video_capture {
+
+VideoCaptureService::VideoCaptureService() = default;
+
+VideoCaptureService::~VideoCaptureService() = default;
+
+bool VideoCaptureService::OnConnect(const shell::Identity& remote_identity,
+ shell::InterfaceRegistry* registry) {
+ registry->AddInterface<mojom::VideoCaptureDeviceFactory>(this);
+ return true;
+}
+
+void VideoCaptureService::Create(
+ const shell::Identity& remote_identity,
+ mojom::VideoCaptureDeviceFactoryRequest request) {
+ bindings_.AddBinding(&device_factory_, std::move(request));
+}
+
+} // namespace video_capture
« no previous file with comments | « services/video_capture/video_capture_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698