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

Unified Diff: third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h

Issue 2655023004: Feature policy: Add basic algorithm for supporting frame policies. (Closed)
Patch Set: Fix logic, add tests Created 3 years, 11 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: third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h
diff --git a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h
index 47b22e6b7951c1183d00a0ce4e824b48c75495cc..f188d66b7dfc42fbd403078c3b526988a40e3d48 100644
--- a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h
+++ b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h
@@ -138,6 +138,7 @@ class PLATFORM_EXPORT FeaturePolicy final {
static std::unique_ptr<FeaturePolicy> createFromParentPolicy(
const FeaturePolicy* parent,
+ const WebParsedFeaturePolicy* framePolicy,
RefPtr<SecurityOrigin>);
// Sets the declared policy from the parsed Feature-Policy HTTP header.
@@ -164,9 +165,13 @@ class PLATFORM_EXPORT FeaturePolicy final {
static std::unique_ptr<FeaturePolicy> createFromParentPolicy(
const FeaturePolicy* parent,
+ const WebParsedFeaturePolicy* framePolicy,
RefPtr<SecurityOrigin>,
FeatureList& features);
+ void addFramePolicy(const FeaturePolicy* parent,
+ const WebParsedFeaturePolicy* framePolicy);
+
RefPtr<SecurityOrigin> m_origin;
// Records whether or not each feature was enabled for this frame by its

Powered by Google App Engine
This is Rietveld 408576698