Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
|
iclelland
2017/02/08 15:06:24
2017
| |
| 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 "WebFeaturePolicyFeatureHash.h" | |
| 9 #include "core/CoreExport.h" | |
| 10 #include "core/dom/DOMTokenList.h" | |
| 11 #include "platform/heap/Handle.h" | |
| 12 #include "public/platform/WebFeaturePolicy.h" | |
| 13 | |
| 14 namespace blink { | |
| 15 | |
| 16 class HTMLIFrameElement; | |
| 17 | |
| 18 class CORE_EXPORT HTMLIFrameElementAllow final : public DOMTokenList, | |
| 19 public DOMTokenListObserver { | |
| 20 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementAllow); | |
| 21 | |
| 22 public: | |
| 23 static HTMLIFrameElementAllow* create(HTMLIFrameElement* element) { | |
| 24 return new HTMLIFrameElementAllow(element); | |
| 25 } | |
| 26 | |
| 27 ~HTMLIFrameElementAllow() override; | |
| 28 | |
| 29 HashSet<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 |