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

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

Issue 2680083002: Initial Implementation of Iframe Attribute for Feature Policy (Part 1) (Closed)
Patch Set: Codereview: 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef HTMLIFrameElementAllow_h
6 #define HTMLIFrameElementAllow_h
7
8 #include "core/CoreExport.h"
9 #include "core/dom/DOMTokenList.h"
10 #include "platform/heap/Handle.h"
11 #include "public/platform/WebFeaturePolicy.h"
12
13 namespace blink {
14
15 class HTMLIFrameElement;
16
17 class CORE_EXPORT HTMLIFrameElementAllow final : public DOMTokenList,
18 public DOMTokenListObserver {
19 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementAllow);
20
21 public:
22 static HTMLIFrameElementAllow* create(HTMLIFrameElement* element) {
23 return new HTMLIFrameElementAllow(element);
24 }
25
26 ~HTMLIFrameElementAllow() override;
27
28 // Returns unique set of valid feature names.
29 Vector<WebFeaturePolicyFeature> parseAllowedFeatureNames(
30 String& invalidTokensErrorMessage) const;
31
32 DECLARE_VIRTUAL_TRACE();
33
34 private:
35 explicit HTMLIFrameElementAllow(HTMLIFrameElement*);
36 bool validateTokenValue(const AtomicString&, ExceptionState&) const override;
37
38 // DOMTokenListObserver.
39 void valueWasSet() override;
40
41 Member<HTMLIFrameElement> m_element;
42 };
43
44 } // namespace blink
45
46 #endif // HTMLIFrameElementAllow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698