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

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

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Rebase. Created 3 years, 9 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.cc
diff --git a/content/browser/frame_host/frame_tree_node.cc b/content/browser/frame_host/frame_tree_node.cc
index be14c709c0a6ab7a14fa17d07840ed5fc735b758..2fdd79c55b1d9dc58ea8b75bce1127ca4e190dbb 100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -291,17 +291,14 @@ void FrameTreeNode::ResetFeaturePolicyHeader() {
}
void FrameTreeNode::AddContentSecurityPolicy(
- const ContentSecurityPolicyHeader& header,
- const std::vector<ContentSecurityPolicy>& policies) {
+ const ContentSecurityPolicyHeader& header) {
replication_state_.accumulated_csp_headers.push_back(header);
render_manager_.OnDidAddContentSecurityPolicy(header);
- csp_policies_.insert(csp_policies_.end(), policies.begin(), policies.end());
}
-void FrameTreeNode::ResetContentSecurityPolicy() {
+void FrameTreeNode::ResetCspHeaders() {
replication_state_.accumulated_csp_headers.clear();
render_manager_.OnDidResetContentSecurityPolicy();
- csp_policies_.clear();
}
void FrameTreeNode::SetInsecureRequestPolicy(
« no previous file with comments | « content/browser/frame_host/frame_tree_node.h ('k') | content/browser/frame_host/interstitial_page_navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698