Index: content/browser/media/video_capture_device_info.h |
diff --git a/content/browser/media/video_capture_device_info.h b/content/browser/media/video_capture_device_info.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6e86e8f9bf7498e45102d3b56b34c6cb3b0fcaf5 |
--- /dev/null |
+++ b/content/browser/media/video_capture_device_info.h |
@@ -0,0 +1,31 @@ |
+// 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. |
+ |
+#ifndef CONTENT_BROWSER_MEDIA_VIDEO_CAPTURE_DEVICE_INFO_H_ |
+#define CONTENT_BROWSER_MEDIA_VIDEO_CAPTURE_DEVICE_INFO_H_ |
+ |
+#include "content/common/content_export.h" |
+#include "media/base/video_capture_types.h" |
+#include "media/capture/video/video_capture_device_descriptor.h" |
+ |
+namespace content { |
+ |
+// Bundles a media::VideoCaptureDeviceDescriptor with corresponding supported |
+// video formats. |
+struct CONTENT_EXPORT VideoCaptureDeviceInfo { |
mcasas
2016/07/30 00:06:11
Last proposal:
- Move this class as internal to Vi
chfremer
2016/08/01 18:53:12
Done.
Even though I think that nested classes/str
|
+ VideoCaptureDeviceInfo(); |
+ VideoCaptureDeviceInfo(media::VideoCaptureDeviceDescriptor descriptor); |
+ ~VideoCaptureDeviceInfo(); |
+ VideoCaptureDeviceInfo(const VideoCaptureDeviceInfo& other); |
+ VideoCaptureDeviceInfo& operator=(const VideoCaptureDeviceInfo& other); |
+ |
+ media::VideoCaptureDeviceDescriptor descriptor; |
+ media::VideoCaptureFormats supported_formats; |
+}; |
+ |
+using VideoCaptureDeviceInfos = std::vector<VideoCaptureDeviceInfo>; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_MEDIA_VIDEO_CAPTURE_DEVICE_INFO_H_ |