OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/HTMLIFrameElementAllow.h" | 5 #include "core/html/HTMLIFrameElementAllow.h" |
6 | 6 |
7 #include "core/html/HTMLIFrameElement.h" | 7 #include "core/html/HTMLIFrameElement.h" |
8 #include "platform/feature_policy/FeaturePolicy.h" | 8 #include "platform/feature_policy/FeaturePolicy.h" |
| 9 #include "wtf/text/StringBuilder.h" |
9 | 10 |
10 using blink::WebFeaturePolicyFeature; | 11 using blink::WebFeaturePolicyFeature; |
11 | 12 |
12 namespace blink { | 13 namespace blink { |
13 | 14 |
14 HTMLIFrameElementAllow::HTMLIFrameElementAllow(HTMLIFrameElement* element) | 15 HTMLIFrameElementAllow::HTMLIFrameElementAllow(HTMLIFrameElement* element) |
15 : DOMTokenList(this), m_element(element) {} | 16 : DOMTokenList(this), m_element(element) {} |
16 | 17 |
17 HTMLIFrameElementAllow::~HTMLIFrameElementAllow() {} | 18 HTMLIFrameElementAllow::~HTMLIFrameElementAllow() {} |
18 | 19 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 return getWebFeaturePolicyFeature(tokenValue.getString()) != | 63 return getWebFeaturePolicyFeature(tokenValue.getString()) != |
63 WebFeaturePolicyFeature::NotFound; | 64 WebFeaturePolicyFeature::NotFound; |
64 } | 65 } |
65 | 66 |
66 void HTMLIFrameElementAllow::valueWasSet() { | 67 void HTMLIFrameElementAllow::valueWasSet() { |
67 DCHECK(m_element); | 68 DCHECK(m_element); |
68 m_element->allowValueWasSet(); | 69 m_element->allowValueWasSet(); |
69 } | 70 } |
70 | 71 |
71 } // namespace blink | 72 } // namespace blink |
OLD | NEW |