OLD | NEW |
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/device_factory_media_to_mojo_adapter.h" | 5 #include "services/video_capture/device_factory_media_to_mojo_adapter.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ptr_util.h" |
10 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
11 #include "media/capture/video/fake_video_capture_device.h" | 12 #include "media/capture/video/fake_video_capture_device.h" |
12 #include "mojo/public/cpp/bindings/strong_binding.h" | 13 #include "mojo/public/cpp/bindings/strong_binding.h" |
13 #include "services/video_capture/device_media_to_mojo_adapter.h" | 14 #include "services/video_capture/device_media_to_mojo_adapter.h" |
14 #include "services/video_capture/public/cpp/capture_settings.h" | 15 #include "services/video_capture/public/cpp/capture_settings.h" |
15 | 16 |
16 namespace video_capture { | 17 namespace video_capture { |
17 | 18 |
18 DeviceFactoryMediaToMojoAdapter::ActiveDeviceEntry::ActiveDeviceEntry() = | 19 DeviceFactoryMediaToMojoAdapter::ActiveDeviceEntry::ActiveDeviceEntry() = |
19 default; | 20 default; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 [&device_id](const media::VideoCaptureDeviceDescriptor& descriptor) { | 133 [&device_id](const media::VideoCaptureDeviceDescriptor& descriptor) { |
133 return descriptor.device_id == device_id; | 134 return descriptor.device_id == device_id; |
134 }); | 135 }); |
135 if (descriptor_iter == descriptors.end()) | 136 if (descriptor_iter == descriptors.end()) |
136 return false; | 137 return false; |
137 *descriptor = *descriptor_iter; | 138 *descriptor = *descriptor_iter; |
138 return true; | 139 return true; |
139 } | 140 } |
140 | 141 |
141 } // namespace video_capture | 142 } // namespace video_capture |
OLD | NEW |