| 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 #include "platform/wtf/text/StringBuilder.h" |
| 10 | 10 |
| 11 using blink::WebFeaturePolicyFeature; | 11 using blink::WebFeaturePolicyFeature; |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 HTMLIFrameElementAllow::HTMLIFrameElementAllow(HTMLIFrameElement* element) | 15 HTMLIFrameElementAllow::HTMLIFrameElementAllow(HTMLIFrameElement* element) |
| 16 : DOMTokenList(this), element_(element) {} | 16 : DOMTokenList(this), element_(element) {} |
| 17 | 17 |
| 18 HTMLIFrameElementAllow::~HTMLIFrameElementAllow() {} | 18 HTMLIFrameElementAllow::~HTMLIFrameElementAllow() {} |
| 19 | 19 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 return GetWebFeaturePolicyFeature(token_value.GetString()) != | 63 return GetWebFeaturePolicyFeature(token_value.GetString()) != |
| 64 WebFeaturePolicyFeature::kNotFound; | 64 WebFeaturePolicyFeature::kNotFound; |
| 65 } | 65 } |
| 66 | 66 |
| 67 void HTMLIFrameElementAllow::ValueWasSet() { | 67 void HTMLIFrameElementAllow::ValueWasSet() { |
| 68 DCHECK(element_); | 68 DCHECK(element_); |
| 69 element_->AllowValueWasSet(); | 69 element_->AllowValueWasSet(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace blink | 72 } // namespace blink |
| OLD | NEW |