Chromium Code Reviews

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

Issue 2636843003: Move most Feature Policy code into content/ (Closed)
Patch Set: Addressing review comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« 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 701787120d6ce6863e0ea4672ceeeb46e037e361..4032e8e75cda676077a2fe916f42b5dac7f342b7 100644
--- a/content/browser/frame_host/frame_tree_node.h
+++ b/content/browser/frame_host/frame_tree_node.h
@@ -17,6 +17,7 @@
#include "content/browser/frame_host/render_frame_host_impl.h"
#include "content/browser/frame_host/render_frame_host_manager.h"
#include "content/common/content_export.h"
+#include "content/common/feature_policy/feature_policy.h"
#include "content/common/frame_owner_properties.h"
#include "content/common/frame_replication_state.h"
#include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
@@ -155,7 +156,7 @@ class CONTENT_EXPORT FrameTreeNode {
// Set the frame's feature policy from an HTTP header, clearing any existing
// policy.
- void SetFeaturePolicyHeader(const ParsedFeaturePolicy& parsed_header);
+ void SetFeaturePolicyHeader(const FeaturePolicyHeader& parsed_header);
// Clear any feature policy associated with the frame.
void ResetFeaturePolicy();
@@ -350,6 +351,8 @@ class CONTENT_EXPORT FrameTreeNode {
// proxies for this frame.
FrameReplicationState replication_state_;
+ std::unique_ptr<FeaturePolicy> feature_policy_;
+
// Track the pending sandbox flags for this frame. When a parent frame
// dynamically updates sandbox flags in the <iframe> element for a child
// frame, these updated flags are stored here and are transferred into
« 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