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

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: Removed getAllowedFeatureNames() from HTMLIFrameElement 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 51ae060faa6306b585b3fff35a19ac7bb79f37bc..740e523bbf21098f5ed64a85d642b8225ef95ade 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.h
@@ -24,11 +24,14 @@
#ifndef HTMLIFrameElement_h
#define HTMLIFrameElement_h
+#include "WebFeaturePolicyFeatureHash.h"
#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/WebPermissionType.h"
@@ -46,9 +49,11 @@ class CORE_EXPORT HTMLIFrameElement final
~HTMLIFrameElement() override;
DOMTokenList* sandbox() const;
DOMTokenList* permissions() const;
+ DOMTokenList* allow() const;
void sandboxValueWasSet();
void permissionsValueWasSet();
+ void allowValueWasSet();
private:
explicit HTMLIFrameElement(Document&);
@@ -90,8 +95,10 @@ class CORE_EXPORT HTMLIFrameElement final
bool m_allowPaymentRequest;
Member<HTMLIFrameElementSandbox> m_sandbox;
Member<HTMLIFrameElementPermissions> m_permissions;
+ Member<HTMLIFrameElementAllow> m_allow;
WebVector<WebPermissionType> m_delegatedPermissions;
+ HashSet<WebFeaturePolicyFeature> m_allowedFeatureNames;
ReferrerPolicy m_referrerPolicy;
};

Powered by Google App Engine
This is Rietveld 408576698