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/Handle.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
12 class HTMLIFrameElementSandbox final : public DOMTokenList { | 13 class HTMLIFrameElement; |
| 14 |
| 15 class HTMLIFrameElementSandbox final : public DOMTokenList, public DOMTokenListO
bserver { |
| 16 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementSandbox); |
13 public: | 17 public: |
14 static HTMLIFrameElementSandbox* create(DOMTokenListObserver* observer = nul
lptr) | 18 static HTMLIFrameElementSandbox* create(HTMLIFrameElement* element) |
15 { | 19 { |
16 return new HTMLIFrameElementSandbox(observer); | 20 return new HTMLIFrameElementSandbox(element); |
17 } | 21 } |
18 | 22 |
19 ~HTMLIFrameElementSandbox() override; | 23 ~HTMLIFrameElementSandbox() override; |
20 | 24 |
| 25 DECLARE_VIRTUAL_TRACE(); |
| 26 |
21 private: | 27 private: |
22 explicit HTMLIFrameElementSandbox(DOMTokenListObserver*); | 28 explicit HTMLIFrameElementSandbox(HTMLIFrameElement*); |
23 bool validateTokenValue(const AtomicString&, ExceptionState&) const override
; | 29 bool validateTokenValue(const AtomicString&, ExceptionState&) const override
; |
| 30 |
| 31 // DOMTokenListObserver. |
| 32 void valueWasSet() override; |
| 33 |
| 34 Member<HTMLIFrameElement> m_element; |
24 }; | 35 }; |
25 | 36 |
26 } // namespace blink | 37 } // namespace blink |
27 | 38 |
28 #endif | 39 #endif |
OLD | NEW |