| 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/DOMSettableTokenList.h" | 8 #include "core/dom/DOMTokenList.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class HTMLIFrameElementSandbox final : public DOMSettableTokenList { | 12 class HTMLIFrameElementSandbox final : public DOMTokenList { |
| 13 public: | 13 public: |
| 14 static PassRefPtrWillBeRawPtr<HTMLIFrameElementSandbox> create(DOMSettableTo
kenListObserver* observer = nullptr) | 14 static PassRefPtrWillBeRawPtr<HTMLIFrameElementSandbox> create(DOMTokenListO
bserver* observer = nullptr) |
| 15 { | 15 { |
| 16 return adoptRefWillBeNoop(new HTMLIFrameElementSandbox(observer)); | 16 return adoptRefWillBeNoop(new HTMLIFrameElementSandbox(observer)); |
| 17 } | 17 } |
| 18 | 18 |
| 19 ~HTMLIFrameElementSandbox() override; | 19 ~HTMLIFrameElementSandbox() override; |
| 20 | 20 |
| 21 private: | 21 private: |
| 22 explicit HTMLIFrameElementSandbox(DOMSettableTokenListObserver*); | 22 explicit HTMLIFrameElementSandbox(DOMTokenListObserver*); |
| 23 bool validateTokenValue(const AtomicString&, ExceptionState&) const override
; | 23 bool validateTokenValue(const AtomicString&, ExceptionState&) const override
; |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 } // namespace blink | 26 } // namespace blink |
| 27 | 27 |
| 28 #endif | 28 #endif |
| OLD | NEW |