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 b58abaaaa601cc5ab65ccd59b4fe0c59f027d2b7..808878ce0337f757ba2010f6e50878debcc0d52d 100644 |
--- a/third_party/WebKit/Source/core/dom/SecurityContext.h |
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.h |
@@ -29,7 +29,6 @@ |
#include "core/CoreExport.h" |
#include "core/dom/SandboxFlags.h" |
-#include "platform/feature_policy/FeaturePolicy.h" |
#include "platform/heap/Handle.h" |
#include "platform/weborigin/Suborigin.h" |
#include "public/platform/WebAddressSpace.h" |
@@ -93,12 +92,10 @@ class CORE_EXPORT SecurityContext : public GarbageCollectedMixin { |
void enforceSuborigin(const Suborigin&); |
- FeaturePolicy* getFeaturePolicy() const { return m_featurePolicy.get(); } |
- void setFeaturePolicyForTesting(std::unique_ptr<FeaturePolicy> newPolicy) { |
- m_featurePolicy = std::move(newPolicy); |
- } |
- void setFeaturePolicyFromHeader(const WebParsedFeaturePolicy& parsedHeader, |
- FeaturePolicy* parentFeaturePolicy); |
+ WebFeaturePolicy* getFeaturePolicy() const { return m_featurePolicy.get(); } |
+ void setFeaturePolicyFromHeader( |
+ const WebParsedFeaturePolicyHeader& parsedHeader, |
+ const WebFeaturePolicy* parentFeaturePolicy); |
protected: |
SecurityContext(); |
@@ -111,7 +108,7 @@ class CORE_EXPORT SecurityContext : public GarbageCollectedMixin { |
private: |
RefPtr<SecurityOrigin> m_securityOrigin; |
Member<ContentSecurityPolicy> m_contentSecurityPolicy; |
- std::unique_ptr<FeaturePolicy> m_featurePolicy; |
+ std::unique_ptr<WebFeaturePolicy> m_featurePolicy; |
SandboxFlags m_sandboxFlags; |