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 6518422b4fb744a4538041704e5fdf3b2b9b11cc..7a580619d046bd8ed5c6fb134e13739b83a9ff5b 100644 |
--- a/content/public/common/media_stream_request.h |
+++ b/content/public/common/media_stream_request.h |
@@ -181,6 +181,7 @@ struct CONTENT_EXPORT MediaStreamRequest { |
int render_view_id, |
int page_request_id, |
const GURL& security_origin, |
+ bool user_gesture, |
MediaStreamRequestType request_type, |
const std::string& requested_audio_device_id, |
const std::string& requested_video_device_id, |
@@ -209,6 +210,9 @@ struct CONTENT_EXPORT MediaStreamRequest { |
// The WebKit security origin for the current request (e.g. "html5rocks.com"). |
GURL security_origin; |
+ // Set to true if the call was made in the context of a user gesture. |
+ bool user_gesture; |
+ |
// Stores the type of request that was made to the media controller. Right now |
// this is only used to distinguish between WebRTC and Pepper requests, as the |
// latter should not be subject to user approval but only to policy check. |