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..59d1ae1b9438522bf0eab6605b0fa35ffaa97318 |
--- /dev/null |
+++ b/content/browser/media/video_capture_device_info.h |
@@ -0,0 +1,29 @@ |
+// 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 "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 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_ |