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

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

Issue 2733823004: Remove old permission delegation prototype (Closed)
Patch Set: update webexposed layout tests Created 3 years, 9 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/Handle.h"
11 #include "public/platform/modules/permissions/permission.mojom-blink.h"
12 #include "wtf/Vector.h"
13
14 namespace blink {
15
16 class HTMLIFrameElement;
17
18 class CORE_EXPORT HTMLIFrameElementPermissions final
19 : public DOMTokenList,
20 public DOMTokenListObserver {
21 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementPermissions);
22
23 public:
24 static HTMLIFrameElementPermissions* create(HTMLIFrameElement* element) {
25 return new HTMLIFrameElementPermissions(element);
26 }
27
28 ~HTMLIFrameElementPermissions() override;
29
30 Vector<mojom::blink::PermissionName> parseDelegatedPermissions(
31 String& invalidTokensErrorMessage) const;
32
33 DECLARE_VIRTUAL_TRACE();
34
35 private:
36 explicit HTMLIFrameElementPermissions(HTMLIFrameElement*);
37 bool validateTokenValue(const AtomicString& tokenValue,
38 ExceptionState&) const override;
39
40 // DOMTokenListObserver.
41 void valueWasSet() override;
42
43 Member<HTMLIFrameElement> m_element;
44 };
45
46 } // namespace blink
47
48 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698