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

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: Moved hash function for WebFeaturePolicyFeature to where the enum is defined for ODR purpose 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 HashSet<WebFeaturePolicyFeature> parseAllowedFeatureNames(
29 String& invalidTokensErrorMessage) const;
30
31 DECLARE_VIRTUAL_TRACE();
32
33 private:
34 explicit HTMLIFrameElementAllow(HTMLIFrameElement*);
35 bool validateTokenValue(const AtomicString&, ExceptionState&) const override;
36
37 // DOMTokenListObserver.
38 void valueWasSet() override;
39
40 Member<HTMLIFrameElement> m_element;
41 };
42
43 } // namespace blink
44
45 #endif // HTMLIFrameElementAllow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698