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

Unified Diff: content/common/feature_policy/feature_policy.h

Issue 2727803004: Replace string by enum in WebParsedFeaturePolicyDeclaration#feature (Closed)
Patch Set: Set upstream Created 3 years, 10 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: content/common/feature_policy/feature_policy.h
diff --git a/content/common/feature_policy/feature_policy.h b/content/common/feature_policy/feature_policy.h
index 86a4103c4ed1159d9cb023b6d5f92c13ce6e9a0d..cd8f2f0ba733412ed7c976c6cf3392fa659e2933 100644
--- a/content/common/feature_policy/feature_policy.h
+++ b/content/common/feature_policy/feature_policy.h
@@ -90,13 +90,13 @@ namespace content {
// They exist only because we can't transfer WebVectors directly over IPC.
struct CONTENT_EXPORT ParsedFeaturePolicyDeclaration {
ParsedFeaturePolicyDeclaration();
- ParsedFeaturePolicyDeclaration(std::string feature_name,
+ ParsedFeaturePolicyDeclaration(blink::WebFeaturePolicyFeature feature,
bool matches_all_origins,
std::vector<url::Origin> origins);
ParsedFeaturePolicyDeclaration(const ParsedFeaturePolicyDeclaration& rhs);
~ParsedFeaturePolicyDeclaration();
- std::string feature_name;
+ blink::WebFeaturePolicyFeature feature;
bool matches_all_origins;
std::vector<url::Origin> origins;
};

Powered by Google App Engine
This is Rietveld 408576698