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 #include "core/html/HTMLIFrameElementSandbox.h" | 5 #include "core/html/HTMLIFrameElementSandbox.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 HTMLIFrameElementSandbox::HTMLIFrameElementSandbox(DOMSettableTokenListObserver*
observer) | 9 HTMLIFrameElementSandbox::HTMLIFrameElementSandbox(DOMTokenListObserver* observe
r) |
10 : DOMSettableTokenList(observer) | 10 : DOMTokenList(observer) |
11 { | 11 { |
12 } | 12 } |
13 | 13 |
14 HTMLIFrameElementSandbox::~HTMLIFrameElementSandbox() | 14 HTMLIFrameElementSandbox::~HTMLIFrameElementSandbox() |
15 { | 15 { |
16 } | 16 } |
17 | 17 |
18 using SandboxSupportedTokens = HashSet<AtomicString>; | 18 using SandboxSupportedTokens = HashSet<AtomicString>; |
19 | 19 |
20 static SandboxSupportedTokens& supportedTokens() | 20 static SandboxSupportedTokens& supportedTokens() |
(...skipping 12 matching lines...) Expand all Loading... |
33 | 33 |
34 return supportedValues; | 34 return supportedValues; |
35 } | 35 } |
36 | 36 |
37 bool HTMLIFrameElementSandbox::validateTokenValue(const AtomicString& tokenValue
, ExceptionState&) const | 37 bool HTMLIFrameElementSandbox::validateTokenValue(const AtomicString& tokenValue
, ExceptionState&) const |
38 { | 38 { |
39 return supportedTokens().contains(tokenValue); | 39 return supportedTokens().contains(tokenValue); |
40 } | 40 } |
41 | 41 |
42 } // namespace blink | 42 } // namespace blink |
OLD | NEW |