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/GarbageCollected.h" | |
sof
2016/06/28 05:29:00
Instead of these two, just include "platform/heap/
raymes
2016/06/28 06:49:46
Done.
Is there documentation about this somewhere
sof
2016/06/28 06:57:48
platform/heap/BlinkGCAPIReference.md is where to l
| |
11 #include "platform/heap/Visitor.h" | |
12 #include "public/platform/modules/permissions/WebPermissionType.h" | |
13 #include "wtf/Vector.h" | |
14 | |
15 namespace blink { | |
16 | |
17 class HTMLIFrameElement; | |
18 | |
19 class CORE_EXPORT HTMLIFrameElementPermissions final : public DOMTokenList, publ ic DOMTokenListObserver { | |
20 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementPermissions); | |
21 public: | |
22 static HTMLIFrameElementPermissions* create(HTMLIFrameElement* element) | |
23 { | |
24 return new HTMLIFrameElementPermissions(element); | |
25 } | |
26 | |
27 ~HTMLIFrameElementPermissions() override; | |
28 | |
29 Vector<WebPermissionType> parseDelegatedPermissions(String& invalidTokensErr orMessage) const; | |
30 | |
31 DECLARE_VIRTUAL_TRACE(); | |
32 | |
33 private: | |
34 explicit HTMLIFrameElementPermissions(HTMLIFrameElement*); | |
35 bool validateTokenValue(const AtomicString& tokenValue, ExceptionState&) con st override; | |
36 | |
37 // DOMTokenListObserver. | |
38 void valueWasSet() override; | |
39 | |
40 Member<HTMLIFrameElement> m_element; | |
41 }; | |
42 | |
43 } // namespace blink | |
44 | |
45 #endif | |
OLD | NEW |