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

Side by Side Diff: services/video_capture/video_capture_service.cc

Issue 2255493002: Video Capture Mojo (1.4a.b): Rename interface VideoCaptureDevice to VideoCaptureDeviceProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FillServicePart1_Part1
Patch Set: Merge-in changes from upstream CL 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 unified diff | Download patch
« no previous file with comments | « services/video_capture/video_capture_device_proxy_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/video_capture/video_capture_service.h" 5 #include "services/video_capture/video_capture_service.h"
6 6
7 #include "services/video_capture/video_capture_device_factory_impl.h" 7 #include "services/video_capture/video_capture_device_factory_impl.h"
8 8
9 namespace { 9 namespace {
10 static const char kFakeDeviceDisplayName[] = "Fake Video Capture Device"; 10 static const char kFakeDeviceDisplayName[] = "Fake Video Capture Device";
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 if (fake_device_factory_) 52 if (fake_device_factory_)
53 return; 53 return;
54 fake_device_factory_ = base::MakeUnique<VideoCaptureDeviceFactoryImpl>(); 54 fake_device_factory_ = base::MakeUnique<VideoCaptureDeviceFactoryImpl>();
55 auto fake_device_descriptor = mojom::VideoCaptureDeviceDescriptor::New(); 55 auto fake_device_descriptor = mojom::VideoCaptureDeviceDescriptor::New();
56 fake_device_descriptor->display_name = kFakeDeviceDisplayName; 56 fake_device_descriptor->display_name = kFakeDeviceDisplayName;
57 fake_device_descriptor->device_id = kFakeDeviceId; 57 fake_device_descriptor->device_id = kFakeDeviceId;
58 fake_device_descriptor->model_id = kFakeModelId; 58 fake_device_descriptor->model_id = kFakeModelId;
59 fake_device_descriptor->capture_api = mojom::VideoCaptureApi::UNKNOWN; 59 fake_device_descriptor->capture_api = mojom::VideoCaptureApi::UNKNOWN;
60 fake_device_descriptor->transport_type = 60 fake_device_descriptor->transport_type =
61 mojom::VideoCaptureTransportType::OTHER_TRANSPORT; 61 mojom::VideoCaptureTransportType::OTHER_TRANSPORT;
62 fake_device_factory_->AddDevice(std::move(fake_device_descriptor), 62 fake_device_factory_->AddDevice(
63 base::MakeUnique<VideoCaptureDeviceImpl>()); 63 std::move(fake_device_descriptor),
64 base::MakeUnique<VideoCaptureDeviceProxyImpl>());
64 } 65 }
65 66
66 } // namespace video_capture 67 } // namespace video_capture
OLDNEW
« no previous file with comments | « services/video_capture/video_capture_device_proxy_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698