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

Unified Diff: media/capture/video/video_capture_device_info.h

Issue 2169013002: Change class VideoCaptureDevice::Name to struct VideoCaptureDeviceDescriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed emircan's comments Created 4 years, 5 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
Index: media/capture/video/video_capture_device_info.h
diff --git a/media/capture/video/video_capture_device_info.h b/media/capture/video/video_capture_device_info.h
index 5f68649b0e2e9a26ce2fdee68963b59d78df951a..87467b6ccb41f943cecfbf2c70990c28a4b6242a 100644
--- a/media/capture/video/video_capture_device_info.h
+++ b/media/capture/video/video_capture_device_info.h
@@ -6,20 +6,24 @@
#define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_INFO_H_
#include "media/base/video_capture_types.h"
-#include "media/capture/video/video_capture_device.h"
+#include "media/capture/video/video_capture_device_descriptor.h"
namespace media {
-// A convenience wrap of a device's name and associated supported formats.
struct CAPTURE_EXPORT VideoCaptureDeviceInfo {
mcasas 2016/07/26 23:52:04 As a note, I was reading the changes in VideoCapt
chfremer 2016/07/27 23:10:18 I agree that the difference between ...Descriptor
mcasas 2016/07/28 00:05:42 Tip of the Tree, i.e. master standpoint.
chfremer 2016/07/29 18:09:50 I think you meant to suggest to put |model_id| int
VideoCaptureDeviceInfo();
- VideoCaptureDeviceInfo(const VideoCaptureDevice::Name& name,
- const VideoCaptureFormats& supported_formats);
VideoCaptureDeviceInfo(const VideoCaptureDeviceInfo& other);
~VideoCaptureDeviceInfo();
- VideoCaptureDevice::Name name;
+ // Friendly name of a device, plus the model identifier in parentheses.
+ std::string GetNameAndModel() const;
+
+ VideoCaptureDeviceDescriptor descriptor;
VideoCaptureFormats supported_formats;
+ // A unique hardware identifier of the capture device.
+ // It is of the form "[vid]:[pid]" when a USB device is detected, and empty
+ // otherwise.
+ std::string model_id;
};
typedef std::vector<VideoCaptureDeviceInfo> VideoCaptureDeviceInfos;

Powered by Google App Engine
This is Rietveld 408576698