Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(792)

Unified Diff: content/public/common/media_stream_request.h

Issue 795703003: Don't auto allow access to media devices unless a the security origin of the requester is the same … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win compile. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 caae3d0063f270d25d8b07e9a0cf9bc57a49f99f..d38f3514d8187611d6f8914a741803c6419261d2 100644
--- a/content/public/common/media_stream_request.h
+++ b/content/public/common/media_stream_request.h
@@ -194,6 +194,7 @@ struct CONTENT_EXPORT MediaStreamRequest {
int render_process_id,
int render_frame_id,
int page_request_id,
+ const std::string& tab_capture_device_id,
const GURL& security_origin,
bool user_gesture,
MediaStreamRequestType request_type,
@@ -242,6 +243,9 @@ struct CONTENT_EXPORT MediaStreamRequest {
// Flag to indicate if the request contains video.
MediaStreamType video_type;
+
+ // True if all ancestors of the requesting frame have the same origin.
+ bool all_ancestors_have_same_origin;
};
// Interface used by the content layer to notify chrome about changes in the

Powered by Google App Engine
This is Rietveld 408576698