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

Unified Diff: content/browser/frame_host/frame_tree_node.cc

Issue 1957783002: Replicate Content-Security-Policy into remote frame proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from dcheng@. Created 4 years, 7 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
« no previous file with comments | « content/browser/frame_host/frame_tree_node.h ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_tree_node.cc
diff --git a/content/browser/frame_host/frame_tree_node.cc b/content/browser/frame_host/frame_tree_node.cc
index 73ef0c3d9d084f6d63db8fff506099ec1fc61bac..e8148a03262ac6653e3f5e42dd2153ac79aabf2d 100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -245,6 +245,17 @@ void FrameTreeNode::SetFrameName(const std::string& name,
replication_state_.unique_name = unique_name;
}
+void FrameTreeNode::AddContentSecurityPolicy(
+ const ContentSecurityPolicyHeader& header) {
+ replication_state_.accumulated_csp_headers.push_back(header);
+ render_manager_.OnDidAddContentSecurityPolicy(header);
+}
+
+void FrameTreeNode::ResetContentSecurityPolicy() {
+ replication_state_.accumulated_csp_headers.clear();
+ render_manager_.OnDidResetContentSecurityPolicy();
+}
+
void FrameTreeNode::SetEnforceStrictMixedContentChecking(bool should_enforce) {
if (should_enforce ==
replication_state_.should_enforce_strict_mixed_content_checking) {
« no previous file with comments | « content/browser/frame_host/frame_tree_node.h ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698