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

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

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: Addressing review comments 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
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.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.h
diff --git a/content/browser/frame_host/frame_tree_node.h b/content/browser/frame_host/frame_tree_node.h
index bf15e2f4c32ba34482d54a0191e36e61b8bfe3f1..77a0df9451ef0146cd1494fd0d1b10fda8474cab 100644
--- a/content/browser/frame_host/frame_tree_node.h
+++ b/content/browser/frame_host/frame_tree_node.h
@@ -149,6 +149,13 @@ class CONTENT_EXPORT FrameTreeNode {
// Set the current name and notify proxies about the update.
void SetFrameName(const std::string& name, const std::string& unique_name);
+ // Set the frame's feature policy from an HTTP header, clearing any existing
+ // policy.
+ void SetFeaturePolicyHeader(const std::string& header);
+
+ // Clear any feature policy associated with the frame.
+ void ResetFeaturePolicy();
+
// Add CSP header to replication state and notify proxies about the update.
void AddContentSecurityPolicy(const ContentSecurityPolicyHeader& header);
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698