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

Unified Diff: third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.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: Blink-side Created 4 years, 6 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/HTMLIFrameElementSandbox.h
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.h b/third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.h
index a4e5238cd6e0c691c682dd75ea376000c988364f..a22fad9b87442245babd9655e88f19922f8072ef 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.h
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.h
@@ -6,21 +6,32 @@
#define HTMLIFrameElementSandbox_h
#include "core/dom/DOMTokenList.h"
+#include "platform/heap/Handle.h"
namespace blink {
-class HTMLIFrameElementSandbox final : public DOMTokenList {
+class HTMLIFrameElement;
+
+class HTMLIFrameElementSandbox final : public DOMTokenList, public DOMTokenListObserver {
+ USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementSandbox);
public:
- static HTMLIFrameElementSandbox* create(DOMTokenListObserver* observer = nullptr)
+ static HTMLIFrameElementSandbox* create(HTMLIFrameElement* element)
{
- return new HTMLIFrameElementSandbox(observer);
+ return new HTMLIFrameElementSandbox(element);
}
~HTMLIFrameElementSandbox() override;
+ DECLARE_VIRTUAL_TRACE();
+
private:
- explicit HTMLIFrameElementSandbox(DOMTokenListObserver*);
+ explicit HTMLIFrameElementSandbox(HTMLIFrameElement*);
bool validateTokenValue(const AtomicString&, ExceptionState&) const override;
+
+ // DOMTokenListObserver.
+ void valueWasSet() override;
+
+ Member<HTMLIFrameElement> m_element;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698