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

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

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)
Patch Set: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… Created 4 years 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
« no previous file with comments | « content/renderer/render_frame_proxy.cc ('k') | third_party/WebKit/Source/core/dom/SecurityContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/SecurityContext.h
diff --git a/third_party/WebKit/Source/core/dom/SecurityContext.h b/third_party/WebKit/Source/core/dom/SecurityContext.h
index f625d9d49df9b71131a8c6054140bda70b221eff..b58abaaaa601cc5ab65ccd59b4fe0c59f027d2b7 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.h
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.h
@@ -33,6 +33,7 @@
#include "platform/heap/Handle.h"
#include "platform/weborigin/Suborigin.h"
#include "public/platform/WebAddressSpace.h"
+#include "public/platform/WebFeaturePolicy.h"
#include "public/platform/WebInsecureRequestPolicy.h"
#include "public/platform/WebURLRequest.h"
#include "wtf/HashSet.h"
@@ -96,9 +97,8 @@ class CORE_EXPORT SecurityContext : public GarbageCollectedMixin {
void setFeaturePolicyForTesting(std::unique_ptr<FeaturePolicy> newPolicy) {
m_featurePolicy = std::move(newPolicy);
}
- void setFeaturePolicyFromHeader(const String& headerValue,
- FeaturePolicy* parentFeaturePolicy,
- Vector<String>* messages = nullptr);
+ void setFeaturePolicyFromHeader(const WebParsedFeaturePolicy& parsedHeader,
+ FeaturePolicy* parentFeaturePolicy);
protected:
SecurityContext();
« no previous file with comments | « content/renderer/render_frame_proxy.cc ('k') | third_party/WebKit/Source/core/dom/SecurityContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698