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

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: Removed getAllowedFeatureNames() from HTMLIFrameElement 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 2016 The Chromium Authors. All rights reserved.
iclelland 2017/02/08 15:06:24 2017
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 "WebFeaturePolicyFeatureHash.h"
9 #include "core/CoreExport.h"
10 #include "core/dom/DOMTokenList.h"
11 #include "platform/heap/Handle.h"
12 #include "public/platform/WebFeaturePolicy.h"
13
14 namespace blink {
15
16 class HTMLIFrameElement;
17
18 class CORE_EXPORT HTMLIFrameElementAllow final : public DOMTokenList,
19 public DOMTokenListObserver {
20 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementAllow);
21
22 public:
23 static HTMLIFrameElementAllow* create(HTMLIFrameElement* element) {
24 return new HTMLIFrameElementAllow(element);
25 }
26
27 ~HTMLIFrameElementAllow() override;
28
29 HashSet<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