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

Unified Diff: third_party/WebKit/Source/core/html/HTMLIFrameElement.h

Issue 2680083002: Initial Implementation of Iframe Attribute for Feature Policy (Part 1) (Closed)
Patch Set: Update rebase Created 3 years, 10 months 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/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;
};

Powered by Google App Engine
This is Rietveld 408576698