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

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

Issue 2011763006: Add an iframe permissions= attribute for implementing permission delegation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-delegation-1-flag
Patch Set: Created 4 years, 7 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 752d0c86fd74027d6b6bfba9a66867b963511cd0..9a348963aae9b70e5d4f3575f92a7338d81a59b5 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.h
@@ -25,7 +25,10 @@
#define HTMLIFrameElement_h
#include "core/html/HTMLFrameElementBase.h"
+#include "core/html/HTMLIFrameElementPermissions.h"
#include "core/html/HTMLIFrameElementSandbox.h"
+#include "public/platform/WebVector.h"
+#include "public/platform/modules/permissions/WebPermissionType.h"
namespace blink {
@@ -37,6 +40,7 @@ public:
DECLARE_VIRTUAL_TRACE();
~HTMLIFrameElement() override;
DOMTokenList* sandbox() const;
+ DOMTokenList* permissions() const;
private:
explicit HTMLIFrameElement(Document&);
@@ -56,15 +60,22 @@ private:
bool isInteractiveContent() const override;
void valueWasSet() override;
+ void sandboxValueWasSet();
+ void permissionsValueWasSet();
ReferrerPolicy referrerPolicyAttribute() override;
bool allowFullscreen() const override { return m_allowFullscreen; }
+ const WebVector<WebPermissionType>* delegatedPermissions() const override { return &m_delegatedPermissions; }
+
AtomicString m_name;
bool m_didLoadNonEmptyDocument;
bool m_allowFullscreen;
Member<HTMLIFrameElementSandbox> m_sandbox;
+ Member<HTMLIFrameElementPermissions> m_permissions;
+
+ WebVector<WebPermissionType> m_delegatedPermissions;
ReferrerPolicy m_referrerPolicy;
};

Powered by Google App Engine
This is Rietveld 408576698