OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef HTMLIFrameElementAllow_h |
| 6 #define HTMLIFrameElementAllow_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/DOMTokenList.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 #include "public/platform/WebFeaturePolicy.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class HTMLIFrameElement; |
| 16 |
| 17 class CORE_EXPORT HTMLIFrameElementAllow final : public DOMTokenList, |
| 18 public DOMTokenListObserver { |
| 19 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementAllow); |
| 20 |
| 21 public: |
| 22 static HTMLIFrameElementAllow* create(HTMLIFrameElement* element) { |
| 23 return new HTMLIFrameElementAllow(element); |
| 24 } |
| 25 |
| 26 ~HTMLIFrameElementAllow() override; |
| 27 |
| 28 // Returns unique set of valid feature names. |
| 29 Vector<WebFeaturePolicyFeature> parseAllowedFeatureNames( |
| 30 String& invalidTokensErrorMessage) const; |
| 31 |
| 32 DECLARE_VIRTUAL_TRACE(); |
| 33 |
| 34 private: |
| 35 explicit HTMLIFrameElementAllow(HTMLIFrameElement*); |
| 36 bool validateTokenValue(const AtomicString&, ExceptionState&) const override; |
| 37 |
| 38 // DOMTokenListObserver. |
| 39 void valueWasSet() override; |
| 40 |
| 41 Member<HTMLIFrameElement> m_element; |
| 42 }; |
| 43 |
| 44 } // namespace blink |
| 45 |
| 46 #endif // HTMLIFrameElementAllow_h |
OLD | NEW |