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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.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
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 BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef HTMLIFrameElementSandbox_h 5 #ifndef HTMLIFrameElementSandbox_h
6 #define HTMLIFrameElementSandbox_h 6 #define HTMLIFrameElementSandbox_h
7 7
8 #include "core/dom/DOMTokenList.h" 8 #include "core/dom/DOMTokenList.h"
9 #include "platform/heap/GarbageCollected.h"
10 #include "platform/heap/Visitor.h"
9 11
10 namespace blink { 12 namespace blink {
11 13
12 class HTMLIFrameElementSandbox final : public DOMTokenList { 14 class HTMLIFrameElement;
15
16 class HTMLIFrameElementSandbox final : public DOMTokenList, public DOMTokenListO bserver {
17 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementSandbox);
13 public: 18 public:
14 static HTMLIFrameElementSandbox* create(DOMTokenListObserver* observer = nul lptr) 19 static HTMLIFrameElementSandbox* create(HTMLIFrameElement* element)
15 { 20 {
16 return new HTMLIFrameElementSandbox(observer); 21 return new HTMLIFrameElementSandbox(element);
17 } 22 }
18 23
19 ~HTMLIFrameElementSandbox() override; 24 ~HTMLIFrameElementSandbox() override;
20 25
26 DECLARE_VIRTUAL_TRACE();
27
21 private: 28 private:
22 explicit HTMLIFrameElementSandbox(DOMTokenListObserver*); 29 explicit HTMLIFrameElementSandbox(HTMLIFrameElement*);
23 bool validateTokenValue(const AtomicString&, ExceptionState&) const override ; 30 bool validateTokenValue(const AtomicString&, ExceptionState&) const override ;
31
32 // DOMTokenListObserver.
33 void valueWasSet() override;
34
35 Member<HTMLIFrameElement> m_element;
24 }; 36 };
25 37
26 } // namespace blink 38 } // namespace blink
27 39
28 #endif 40 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698