| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef HTMLIFrameElementSandbox_h | 5 #ifndef HTMLIFrameElementSandbox_h |
| 6 #define HTMLIFrameElementSandbox_h | 6 #define HTMLIFrameElementSandbox_h |
| 7 | 7 |
| 8 #include "core/dom/DOMTokenList.h" | 8 #include "core/dom/DOMTokenList.h" |
| 9 #include "platform/heap/GarbageCollected.h" |
| 10 #include "platform/heap/Visitor.h" |
| 9 | 11 |
| 10 namespace blink { | 12 namespace blink { |
| 11 | 13 |
| 12 class HTMLIFrameElementSandbox final : public DOMTokenList { | 14 class HTMLIFrameElement; |
| 15 |
| 16 class HTMLIFrameElementSandbox final : public DOMTokenList, public DOMTokenListO
bserver { |
| 17 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementSandbox); |
| 13 public: | 18 public: |
| 14 static HTMLIFrameElementSandbox* create(DOMTokenListObserver* observer = nul
lptr) | 19 static HTMLIFrameElementSandbox* create(HTMLIFrameElement* element) |
| 15 { | 20 { |
| 16 return new HTMLIFrameElementSandbox(observer); | 21 return new HTMLIFrameElementSandbox(element); |
| 17 } | 22 } |
| 18 | 23 |
| 19 ~HTMLIFrameElementSandbox() override; | 24 ~HTMLIFrameElementSandbox() override; |
| 20 | 25 |
| 26 DECLARE_VIRTUAL_TRACE(); |
| 27 |
| 21 private: | 28 private: |
| 22 explicit HTMLIFrameElementSandbox(DOMTokenListObserver*); | 29 explicit HTMLIFrameElementSandbox(HTMLIFrameElement*); |
| 23 bool validateTokenValue(const AtomicString&, ExceptionState&) const override
; | 30 bool validateTokenValue(const AtomicString&, ExceptionState&) const override
; |
| 31 |
| 32 // DOMTokenListObserver. |
| 33 void valueWasSet() override; |
| 34 |
| 35 Member<HTMLIFrameElement> m_element; |
| 24 }; | 36 }; |
| 25 | 37 |
| 26 } // namespace blink | 38 } // namespace blink |
| 27 | 39 |
| 28 #endif | 40 #endif |
| OLD | NEW |