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

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

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: Remove layout test; better coverage with unit tests Created 4 years, 1 month 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 e37dd7be76d451a134919bc6406a786bccc0a169..0abecdf3412ffbed91a1aa3f79cc8a66f9f124f8 100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -255,6 +255,14 @@ void FrameTreeNode::SetFrameName(const std::string& name,
replication_state_.unique_name = unique_name;
}
+void FrameTreeNode::ResetFeaturePolicy() {
alexmos 2016/11/17 21:45:58 nit: move this below SetFeaturePolicyHeader to mat
iclelland 2016/11/18 16:12:37 Done.
+ replication_state_.feature_policy_header = "";
+}
+
+void FrameTreeNode::SetFeaturePolicyHeader(const std::string& header) {
+ replication_state_.feature_policy_header = header;
+}
+
void FrameTreeNode::AddContentSecurityPolicy(
const ContentSecurityPolicyHeader& header) {
replication_state_.accumulated_csp_headers.push_back(header);

Powered by Google App Engine
This is Rietveld 408576698