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

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/Handle.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class HTMLIFrameElementSandbox final : public DOMTokenList { 13 class HTMLIFrameElement;
14
15 class HTMLIFrameElementSandbox final : public DOMTokenList, public DOMTokenListO bserver {
16 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementSandbox);
13 public: 17 public:
14 static HTMLIFrameElementSandbox* create(DOMTokenListObserver* observer = nul lptr) 18 static HTMLIFrameElementSandbox* create(HTMLIFrameElement* element)
15 { 19 {
16 return new HTMLIFrameElementSandbox(observer); 20 return new HTMLIFrameElementSandbox(element);
17 } 21 }
18 22
19 ~HTMLIFrameElementSandbox() override; 23 ~HTMLIFrameElementSandbox() override;
20 24
25 DECLARE_VIRTUAL_TRACE();
26
21 private: 27 private:
22 explicit HTMLIFrameElementSandbox(DOMTokenListObserver*); 28 explicit HTMLIFrameElementSandbox(HTMLIFrameElement*);
23 bool validateTokenValue(const AtomicString&, ExceptionState&) const override ; 29 bool validateTokenValue(const AtomicString&, ExceptionState&) const override ;
30
31 // DOMTokenListObserver.
32 void valueWasSet() override;
33
34 Member<HTMLIFrameElement> m_element;
24 }; 35 };
25 36
26 } // namespace blink 37 } // namespace blink
27 38
28 #endif 39 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698