Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLIFrameElementPermissions.h

Issue 2011763006: Add an iframe permissions= attribute for implementing permission delegation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-delegation-1-flag
Patch Set: Blink-side Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698