Chromium Code Reviews| 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 c24b1bf72a25c61babcf31941d9fc73da523c4ff..cefb236672aada81445c5b25301317de3264ad6a 100644 |
| --- a/content/public/common/media_stream_request.h |
| +++ b/content/public/common/media_stream_request.h |
| @@ -195,17 +195,17 @@ typedef std::map<MediaStreamType, MediaStreamDevices> MediaStreamDeviceMap; |
| // Tab-only stuff and Pepper-only stuff being passed around to all clients, |
| // which is icky. |
| struct CONTENT_EXPORT MediaStreamRequest { |
| - MediaStreamRequest( |
| - int render_process_id, |
| - int render_frame_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, |
| - MediaStreamType audio_type, |
| - MediaStreamType video_type); |
| + MediaStreamRequest(int render_process_id, |
| + int render_frame_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, |
| + MediaStreamType audio_type, |
| + MediaStreamType video_type, |
| + bool mute_source); |
|
miu
2016/09/07 21:10:03
Since the mute option is a part of the device ID,
qiangchen
2016/09/09 18:45:24
Ditto.
|
| MediaStreamRequest(const MediaStreamRequest& other); |
| @@ -247,6 +247,10 @@ struct CONTENT_EXPORT MediaStreamRequest { |
| // Flag to indicate if the request contains video. |
| MediaStreamType video_type; |
| + // Flag for desktop share to indicate whether to mute the source audio during |
| + // sharing. |
| + bool mute_source; |
| + |
| // True if all ancestors of the requesting frame have the same origin. |
| bool all_ancestors_have_same_origin; |
| }; |