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

Unified Diff: content/browser/frame_host/frame_tree_node.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/browser/frame_host/frame_tree_node.h
diff --git a/content/browser/frame_host/frame_tree_node.h b/content/browser/frame_host/frame_tree_node.h
index d257922a49550cc8ff10345ecec470194e19a7c8..07ca139b09fe28d7704f336b56704d1320fb3da7 100644
--- a/content/browser/frame_host/frame_tree_node.h
+++ b/content/browser/frame_host/frame_tree_node.h
@@ -97,6 +97,10 @@ class CONTENT_EXPORT FrameTreeNode {
replication_state_.sandbox_flags = sandbox_flags;
}
+ bool HasSameOrigin(const FrameTreeNode& node) const {
+ return replication_state_.origin.IsSameAs(node.replication_state_.origin);
+ }
+
const FrameReplicationState& current_replication_state() const {
return replication_state_;
}
« no previous file with comments | « chrome/browser/media/media_stream_devices_controller.cc ('k') | content/browser/renderer_host/media/media_stream_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698