| Index: third_party/WebKit/Source/web/RemoteFrameOwner.h
|
| diff --git a/third_party/WebKit/Source/web/RemoteFrameOwner.h b/third_party/WebKit/Source/web/RemoteFrameOwner.h
|
| index 9a5d150203a362f169b891cc39c2003cdc452cad..922fee40d0b42203ada07e3efdef22e3eb2669e0 100644
|
| --- a/third_party/WebKit/Source/web/RemoteFrameOwner.h
|
| +++ b/third_party/WebKit/Source/web/RemoteFrameOwner.h
|
| @@ -24,8 +24,9 @@ class RemoteFrameOwner final
|
| public:
|
| static RemoteFrameOwner* create(
|
| SandboxFlags flags,
|
| + const WebParsedFeaturePolicy& containerPolicy,
|
| const WebFrameOwnerProperties& frameOwnerProperties) {
|
| - return new RemoteFrameOwner(flags, frameOwnerProperties);
|
| + return new RemoteFrameOwner(flags, containerPolicy, frameOwnerProperties);
|
| }
|
|
|
| // FrameOwner overrides:
|
| @@ -52,6 +53,9 @@ class RemoteFrameOwner final
|
| const WebVector<WebFeaturePolicyFeature>& allowedFeatures() const override {
|
| return m_allowedFeatures;
|
| }
|
| + const WebParsedFeaturePolicy& containerPolicy() const override {
|
| + return m_containerPolicy;
|
| + }
|
|
|
| void setBrowsingContextContainerName(const WebString& name) {
|
| m_browsingContextContainerName = name;
|
| @@ -71,11 +75,16 @@ class RemoteFrameOwner final
|
| const WebVector<WebFeaturePolicyFeature>& allowedFeatures) {
|
| m_allowedFeatures = allowedFeatures;
|
| }
|
| + void setContainerPolicy(const WebParsedFeaturePolicy& containerPolicy) {
|
| + m_containerPolicy = containerPolicy;
|
| + }
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| - RemoteFrameOwner(SandboxFlags, const WebFrameOwnerProperties&);
|
| + RemoteFrameOwner(SandboxFlags,
|
| + const WebParsedFeaturePolicy&,
|
| + const WebFrameOwnerProperties&);
|
|
|
| // Intentionally private to prevent redundant checks when the type is
|
| // already HTMLFrameOwnerElement.
|
| @@ -93,6 +102,7 @@ class RemoteFrameOwner final
|
| bool m_isDisplayNone;
|
| WebString m_csp;
|
| WebVector<WebFeaturePolicyFeature> m_allowedFeatures;
|
| + WebParsedFeaturePolicy m_containerPolicy;
|
| };
|
|
|
| DEFINE_TYPE_CASTS(RemoteFrameOwner,
|
|
|