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 "public/platform/modules/permissions/WebPermissionType.h" |
| 11 #include "wtf/Vector.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class CORE_EXPORT HTMLIFrameElementPermissions final : public DOMTokenList { |
| 16 public: |
| 17 static HTMLIFrameElementPermissions* create(DOMTokenListObserver* observer =
nullptr) |
| 18 { |
| 19 return new HTMLIFrameElementPermissions(observer); |
| 20 } |
| 21 |
| 22 ~HTMLIFrameElementPermissions() override; |
| 23 |
| 24 Vector<WebPermissionType> parseDelegatedPermissions(String& invalidTokensErr
orMessage) const; |
| 25 |
| 26 private: |
| 27 explicit HTMLIFrameElementPermissions(DOMTokenListObserver*); |
| 28 bool validateTokenValue(const AtomicString& tokenValue, ExceptionState&) con
st override; |
| 29 }; |
| 30 |
| 31 } // namespace blink |
| 32 |
| 33 #endif |
OLD | NEW |