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

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

Issue 2682953002: Make delegated permissions use mojo generated -permissions. (Closed)
Patch Set: fix nit Created 3 years, 10 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSDstyle license that can be 2 // Use of this source code is governed by a BSDstyle license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef HTMLIFrameElementPermissions_h 5 #ifndef HTMLIFrameElementPermissions_h
6 #define HTMLIFrameElementPermissions_h 6 #define HTMLIFrameElementPermissions_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/DOMTokenList.h" 9 #include "core/dom/DOMTokenList.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "public/platform/modules/permissions/WebPermissionType.h" 11 #include "public/platform/modules/permissions/permission.mojom-blink.h"
12 #include "wtf/Vector.h" 12 #include "wtf/Vector.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class HTMLIFrameElement; 16 class HTMLIFrameElement;
17 17
18 class CORE_EXPORT HTMLIFrameElementPermissions final 18 class CORE_EXPORT HTMLIFrameElementPermissions final
19 : public DOMTokenList, 19 : public DOMTokenList,
20 public DOMTokenListObserver { 20 public DOMTokenListObserver {
21 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementPermissions); 21 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementPermissions);
22 22
23 public: 23 public:
24 static HTMLIFrameElementPermissions* create(HTMLIFrameElement* element) { 24 static HTMLIFrameElementPermissions* create(HTMLIFrameElement* element) {
25 return new HTMLIFrameElementPermissions(element); 25 return new HTMLIFrameElementPermissions(element);
26 } 26 }
27 27
28 ~HTMLIFrameElementPermissions() override; 28 ~HTMLIFrameElementPermissions() override;
29 29
30 Vector<WebPermissionType> parseDelegatedPermissions( 30 Vector<mojom::blink::PermissionName> parseDelegatedPermissions(
31 String& invalidTokensErrorMessage) const; 31 String& invalidTokensErrorMessage) const;
32 32
33 DECLARE_VIRTUAL_TRACE(); 33 DECLARE_VIRTUAL_TRACE();
34 34
35 private: 35 private:
36 explicit HTMLIFrameElementPermissions(HTMLIFrameElement*); 36 explicit HTMLIFrameElementPermissions(HTMLIFrameElement*);
37 bool validateTokenValue(const AtomicString& tokenValue, 37 bool validateTokenValue(const AtomicString& tokenValue,
38 ExceptionState&) const override; 38 ExceptionState&) const override;
39 39
40 // DOMTokenListObserver. 40 // DOMTokenListObserver.
41 void valueWasSet() override; 41 void valueWasSet() override;
42 42
43 Member<HTMLIFrameElement> m_element; 43 Member<HTMLIFrameElement> m_element;
44 }; 44 };
45 45
46 } // namespace blink 46 } // namespace blink
47 47
48 #endif 48 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698