summaryrefslogtreecommitdiffstats
path: root/content/public/common/media_stream_request.h
diff options
context:
space:
mode:
authorgbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-28 20:19:31 +0000
committergbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-28 20:19:31 +0000
commit7c6d948a2a351c1fc1a5055d509865fe0cfda51b (patch)
tree0341454d8507805c72e8a795915ab7be1bed88f0 /content/public/common/media_stream_request.h
parentbbb26915eae6ccf279877e8f7f033a73b551f757 (diff)
downloadchromium_src-7c6d948a2a351c1fc1a5055d509865fe0cfda51b.zip
chromium_src-7c6d948a2a351c1fc1a5055d509865fe0cfda51b.tar.gz
chromium_src-7c6d948a2a351c1fc1a5055d509865fe0cfda51b.tar.bz2
[Media] Add user gesture reporting for API calls to midi and media streams.
BUG=332115 Review URL: https://codereview.chromium.org/185863003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/common/media_stream_request.h')
-rw-r--r--content/public/common/media_stream_request.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/public/common/media_stream_request.h b/content/public/common/media_stream_request.h
index 6518422..7a58061 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.