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

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

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 | « 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 a8a9eedb88c3a255ca36b7418eb74607a396239d..f068a1c9f0aadb197a9d24609e0fb13a7522d15e 100644
--- a/content/browser/frame_host/frame_tree_node.h
+++ b/content/browser/frame_host/frame_tree_node.h
@@ -27,6 +27,7 @@ class FrameTree;
class NavigationRequest;
class Navigator;
class RenderFrameHostImpl;
+struct ContentSecurityPolicyHeader;
// When a page contains iframes, its renderer process maintains a tree structure
// of those frames. We are mirroring this tree in the browser process. This
@@ -145,6 +146,14 @@ 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);
+ // Add CSP header to replication state and notify proxies about the update.
+ void AddContentSecurityPolicy(const ContentSecurityPolicyHeader& header);
+
+ // Discards previous CSP headers and notifies proxies about the update.
+ // Typically invoked after committing navigation to a new document (since the
+ // new document comes with a fresh set of CSP http headers).
+ void ResetContentSecurityPolicy();
+
// Sets the current enforcement of strict mixed content checking and
// notifies proxies about the update.
void SetEnforceStrictMixedContentChecking(bool should_enforce);
« 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