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 |