Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/HTMLIFrameElement.h |
| diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElement.h b/third_party/WebKit/Source/core/html/HTMLIFrameElement.h |
| index 6f1d0265f1c6c0ea00c17ad4363d88ef1982de28..4765d3fe3feddc0e44f4c5c43c9116fb2ad73393 100644 |
| --- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.h |
| +++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.h |
| @@ -26,9 +26,11 @@ |
| #include "core/CoreExport.h" |
| #include "core/html/HTMLFrameElementBase.h" |
| +#include "core/html/HTMLIFrameElementAllow.h" |
| #include "core/html/HTMLIFrameElementPermissions.h" |
| #include "core/html/HTMLIFrameElementSandbox.h" |
| #include "platform/Supplementable.h" |
| +#include "public/platform/WebFeaturePolicy.h" |
| #include "public/platform/WebVector.h" |
| #include "public/platform/modules/permissions/permission.mojom-blink.h" |
| @@ -46,9 +48,20 @@ class CORE_EXPORT HTMLIFrameElement final |
| ~HTMLIFrameElement() override; |
| DOMTokenList* sandbox() const; |
| DOMTokenList* permissions() const; |
| + DOMTokenList* allow() const; |
| void sandboxValueWasSet(); |
| void permissionsValueWasSet(); |
| + void allowValueWasSet(); |
| + |
| + // Helper function used to process error message for sandbox, permissions, and |
| + // allow. |
| + static void addTokenError(StringBuilder& tokenErrors, |
|
Rick Byers
2017/02/10 22:09:20
I think hanging this off HTMLIFrameElement is fine
lunalu1
2017/02/10 23:04:12
It is not as trivial as it seems.
parseSandboxPol
Rick Byers
2017/02/11 04:09:19
Thanks for digging into this! Ok, I see how this
|
| + const StringView& token) { |
| + tokenErrors.append(tokenErrors.isEmpty() ? "'" : ", '"); |
| + tokenErrors.append(token); |
| + tokenErrors.append("'"); |
| + } |
| private: |
| explicit HTMLIFrameElement(Document&); |
| @@ -91,8 +104,10 @@ class CORE_EXPORT HTMLIFrameElement final |
| bool m_allowPaymentRequest; |
| Member<HTMLIFrameElementSandbox> m_sandbox; |
| Member<HTMLIFrameElementPermissions> m_permissions; |
| + Member<HTMLIFrameElementAllow> m_allow; |
| WebVector<mojom::blink::PermissionName> m_delegatedPermissions; |
| + HashSet<WebFeaturePolicyFeature> m_allowedFeatureNames; |
| ReferrerPolicy m_referrerPolicy; |
| }; |