Index: content/public/common/media_stream_request.h |
diff --git a/content/public/common/media_stream_request.h b/content/public/common/media_stream_request.h |
index 07a4e1af114d6adf49e2d65b1982c7ac1c1de92c..f99c43110874b245b68320c5226eb05a0fac5ce6 100644 |
--- a/content/public/common/media_stream_request.h |
+++ b/content/public/common/media_stream_request.h |
@@ -15,6 +15,7 @@ |
#include "base/callback_forward.h" |
#include "content/common/content_export.h" |
#include "media/base/audio_parameters.h" |
+#include "media/capture/video/video_capture_device_descriptor.h" |
#include "ui/gfx/native_widget_types.h" |
#include "url/gurl.h" |
@@ -77,6 +78,9 @@ enum MediaStreamRequestResult { |
NUM_MEDIA_REQUEST_RESULTS |
}; |
+using CameraCalibration = |
+ media::VideoCaptureDeviceDescriptor::CameraCalibration; |
+ |
// Convenience predicates to determine whether the given type represents some |
// audio or some video device. |
CONTENT_EXPORT bool IsAudioInputMediaType(MediaStreamType type); |
@@ -164,6 +168,9 @@ struct CONTENT_EXPORT MediaStreamDevice { |
// exists (e.g. webcam w/mic), then the value of this member will be all |
// zeros. |
AudioDeviceParameters matched_output; |
+ |
+ // This field is optional and available only for some camera models. |
+ base::Optional<CameraCalibration> camera_calibration; |
}; |
class CONTENT_EXPORT MediaStreamDevices |