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

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: Fixed nit. 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..b60835ee04b71aec95d53e2eb859432fdb52c62b 100644
--- a/content/public/common/media_stream_request.h
+++ b/content/public/common/media_stream_request.h
@@ -218,9 +218,6 @@ struct CONTENT_EXPORT MediaStreamRequest {
// identifying this request. This is used for cancelling request.
int page_request_id;
- // Used by tab capture.
- std::string tab_capture_device_id;
-
// The WebKit security origin for the current request (e.g. "html5rocks.com").
GURL security_origin;
@@ -242,6 +239,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
« no previous file with comments | « content/browser/renderer_host/media/media_stream_ui_proxy_unittest.cc ('k') | content/public/common/media_stream_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698