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

Unified Diff: third_party/WebKit/Source/core/dom/SecurityContext.cpp

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)
Patch Set: Created 4 years, 1 month 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/core/dom/SecurityContext.cpp
diff --git a/third_party/WebKit/Source/core/dom/SecurityContext.cpp b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
index df384837ec6da5cb3a61b514fa76ed816cec5928..a6eff7c222184f442ae5cf6e5a9eaccb05a864b0 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.cpp
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
@@ -100,14 +100,13 @@ void SecurityContext::enforceSuborigin(const Suborigin& suborigin) {
}
void SecurityContext::setFeaturePolicyFromHeader(
- const String& headerValue,
- SecurityContext* parentSecurityContext,
- Vector<String>* messages) {
+ const WebVector<WebFeaturePolicy::ParsedWhitelist>& parsedPolicy,
+ SecurityContext* parentSecurityContext) {
m_featurePolicy = FeaturePolicy::createFromParentPolicy(
(parentSecurityContext ? parentSecurityContext->getFeaturePolicy()
: nullptr),
m_securityOrigin);
- m_featurePolicy->setHeaderPolicy(headerValue, messages);
+ m_featurePolicy->setHeaderPolicy(parsedPolicy);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698