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 1ed4d7ee26d8db46b63506c7fd59e3ee22fe4b66..b518d77d55401c73d4914edcb788bf79365102a5 100644 |
--- a/content/public/common/media_stream_request.h |
+++ b/content/public/common/media_stream_request.h |
@@ -16,6 +16,7 @@ |
#include "content/common/content_export.h" |
#include "media/base/audio_parameters.h" |
#include "media/base/video_facing.h" |
+#include "media/capture/video/video_capture_device_descriptor.h" |
#include "ui/gfx/native_widget_types.h" |
#include "url/gurl.h" |
@@ -69,6 +70,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); |
@@ -161,6 +165,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 |