OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSDstyle license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef HTMLIFrameElementPermissions_h |
| 6 #define HTMLIFrameElementPermissions_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/DOMTokenList.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 #include "public/platform/modules/permissions/WebPermissionType.h" |
| 12 #include "wtf/Vector.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class HTMLIFrameElement; |
| 17 |
| 18 class CORE_EXPORT HTMLIFrameElementPermissions final : public DOMTokenList, publ
ic DOMTokenListObserver { |
| 19 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementPermissions); |
| 20 public: |
| 21 static HTMLIFrameElementPermissions* create(HTMLIFrameElement* element) |
| 22 { |
| 23 return new HTMLIFrameElementPermissions(element); |
| 24 } |
| 25 |
| 26 ~HTMLIFrameElementPermissions() override; |
| 27 |
| 28 Vector<WebPermissionType> parseDelegatedPermissions(String& invalidTokensErr
orMessage) const; |
| 29 |
| 30 DECLARE_VIRTUAL_TRACE(); |
| 31 |
| 32 private: |
| 33 explicit HTMLIFrameElementPermissions(HTMLIFrameElement*); |
| 34 bool validateTokenValue(const AtomicString& tokenValue, ExceptionState&) con
st override; |
| 35 |
| 36 // DOMTokenListObserver. |
| 37 void valueWasSet() override; |
| 38 |
| 39 Member<HTMLIFrameElement> m_element; |
| 40 }; |
| 41 |
| 42 } // namespace blink |
| 43 |
| 44 #endif |
OLD | NEW |