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

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, 6 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 "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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698