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

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

Issue 2648423002: Rename feature policy classes. (Closed)
Patch Set: Rebase 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..94e84cb65a573af90ae9ba6255c0a0079cdee572 100644
--- a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h
+++ b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h
@@ -75,7 +75,7 @@ class PLATFORM_EXPORT FeaturePolicy final {
class Whitelist final {
public:
static std::unique_ptr<Whitelist> from(
- const WebFeaturePolicy::ParsedWhitelist&);
+ const WebParsedFeaturePolicyDeclaration&);
Whitelist();
@@ -132,9 +132,10 @@ class PLATFORM_EXPORT FeaturePolicy final {
// but will be filtered out when the policy is constructed. If |messages| is
// not null, then any errors in the input will cause an error message to be
// appended to it.
- static WebParsedFeaturePolicy parseFeaturePolicy(const String& policy,
- RefPtr<SecurityOrigin>,
- Vector<String>* messages);
+ static WebParsedFeaturePolicyHeader parseFeaturePolicy(
+ const String& policy,
+ RefPtr<SecurityOrigin>,
+ Vector<String>* messages);
static std::unique_ptr<FeaturePolicy> createFromParentPolicy(
const FeaturePolicy* parent,
@@ -142,7 +143,7 @@ class PLATFORM_EXPORT FeaturePolicy final {
// Sets the declared policy from the parsed Feature-Policy HTTP header.
// Unrecognized features will be ignored.
- void setHeaderPolicy(const WebParsedFeaturePolicy&);
+ void setHeaderPolicy(const WebParsedFeaturePolicyHeader&);
// Returns whether or not the given feature is enabled by this policy.
bool isFeatureEnabledForOrigin(const Feature&, const SecurityOrigin&) const;

Powered by Google App Engine
This is Rietveld 408576698