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

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

Issue 2733823004: Remove old permission delegation prototype (Closed)
Patch Set: update webexposed layout tests Created 3 years, 9 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 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann <hausmann@kde.org> 4 * (C) 2000 Simon Hausmann <hausmann@kde.org>
5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
11 * 11 *
12 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details. 15 * Library General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Library General Public License 17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to 18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA. 20 * Boston, MA 02110-1301, USA.
21 * 21 *
22 */ 22 */
23 23
24 #ifndef HTMLIFrameElement_h 24 #ifndef HTMLIFrameElement_h
25 #define HTMLIFrameElement_h 25 #define HTMLIFrameElement_h
26 26
27 #include "core/CoreExport.h" 27 #include "core/CoreExport.h"
28 #include "core/html/HTMLFrameElementBase.h" 28 #include "core/html/HTMLFrameElementBase.h"
29 #include "core/html/HTMLIFrameElementAllow.h" 29 #include "core/html/HTMLIFrameElementAllow.h"
30 #include "core/html/HTMLIFrameElementPermissions.h"
31 #include "core/html/HTMLIFrameElementSandbox.h" 30 #include "core/html/HTMLIFrameElementSandbox.h"
32 #include "platform/Supplementable.h" 31 #include "platform/Supplementable.h"
33 #include "public/platform/WebFeaturePolicy.h" 32 #include "public/platform/WebFeaturePolicy.h"
34 #include "public/platform/WebVector.h" 33 #include "public/platform/WebVector.h"
35 #include "public/platform/modules/permissions/permission.mojom-blink.h"
36 34
37 namespace blink { 35 namespace blink {
38 36
39 class CORE_EXPORT HTMLIFrameElement final 37 class CORE_EXPORT HTMLIFrameElement final
40 : public HTMLFrameElementBase, 38 : public HTMLFrameElementBase,
41 public Supplementable<HTMLIFrameElement> { 39 public Supplementable<HTMLIFrameElement> {
42 DEFINE_WRAPPERTYPEINFO(); 40 DEFINE_WRAPPERTYPEINFO();
43 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElement); 41 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElement);
44 42
45 public: 43 public:
46 DECLARE_NODE_FACTORY(HTMLIFrameElement); 44 DECLARE_NODE_FACTORY(HTMLIFrameElement);
47 DECLARE_VIRTUAL_TRACE(); 45 DECLARE_VIRTUAL_TRACE();
48 ~HTMLIFrameElement() override; 46 ~HTMLIFrameElement() override;
49 DOMTokenList* sandbox() const; 47 DOMTokenList* sandbox() const;
50 DOMTokenList* permissions() const;
51 DOMTokenList* allow() const; 48 DOMTokenList* allow() const;
52 49
53 void sandboxValueWasSet(); 50 void sandboxValueWasSet();
54 void permissionsValueWasSet();
55 void allowValueWasSet(); 51 void allowValueWasSet();
56 52
57 private: 53 private:
58 explicit HTMLIFrameElement(Document&); 54 explicit HTMLIFrameElement(Document&);
59 55
60 void parseAttribute(const AttributeModificationParams&) override; 56 void parseAttribute(const AttributeModificationParams&) override;
61 bool isPresentationAttribute(const QualifiedName&) const override; 57 bool isPresentationAttribute(const QualifiedName&) const override;
62 void collectStyleForPresentationAttribute(const QualifiedName&, 58 void collectStyleForPresentationAttribute(const QualifiedName&,
63 const AtomicString&, 59 const AtomicString&,
64 MutableStylePropertySet*) override; 60 MutableStylePropertySet*) override;
65 61
66 InsertionNotificationRequest insertedInto(ContainerNode*) override; 62 InsertionNotificationRequest insertedInto(ContainerNode*) override;
67 void removedFrom(ContainerNode*) override; 63 void removedFrom(ContainerNode*) override;
68 64
69 bool layoutObjectIsNeeded(const ComputedStyle&) override; 65 bool layoutObjectIsNeeded(const ComputedStyle&) override;
70 LayoutObject* createLayoutObject(const ComputedStyle&) override; 66 LayoutObject* createLayoutObject(const ComputedStyle&) override;
71 67
72 bool loadedNonEmptyDocument() const override { 68 bool loadedNonEmptyDocument() const override {
73 return m_didLoadNonEmptyDocument; 69 return m_didLoadNonEmptyDocument;
74 } 70 }
75 void didLoadNonEmptyDocument() override { m_didLoadNonEmptyDocument = true; } 71 void didLoadNonEmptyDocument() override { m_didLoadNonEmptyDocument = true; }
76 bool isInteractiveContent() const override; 72 bool isInteractiveContent() const override;
77 73
78 ReferrerPolicy referrerPolicyAttribute() override; 74 ReferrerPolicy referrerPolicyAttribute() override;
79 75
80 // FrameOwner overrides: 76 // FrameOwner overrides:
81 bool allowFullscreen() const override { return m_allowFullscreen; } 77 bool allowFullscreen() const override { return m_allowFullscreen; }
82 bool allowPaymentRequest() const override { return m_allowPaymentRequest; } 78 bool allowPaymentRequest() const override { return m_allowPaymentRequest; }
83 AtomicString csp() const override { return m_csp; } 79 AtomicString csp() const override { return m_csp; }
84 const WebVector<mojom::blink::PermissionName>& delegatedPermissions()
85 const override {
86 return m_delegatedPermissions;
87 }
88 const WebVector<WebFeaturePolicyFeature>& allowedFeatures() const override { 80 const WebVector<WebFeaturePolicyFeature>& allowedFeatures() const override {
89 return m_allowedFeatures; 81 return m_allowedFeatures;
90 } 82 }
91 83
92 bool initializePermissionsAttribute();
93
94 AtomicString m_name; 84 AtomicString m_name;
95 AtomicString m_csp; 85 AtomicString m_csp;
96 bool m_didLoadNonEmptyDocument; 86 bool m_didLoadNonEmptyDocument;
97 bool m_allowFullscreen; 87 bool m_allowFullscreen;
98 bool m_allowPaymentRequest; 88 bool m_allowPaymentRequest;
99 Member<HTMLIFrameElementSandbox> m_sandbox; 89 Member<HTMLIFrameElementSandbox> m_sandbox;
100 Member<HTMLIFrameElementPermissions> m_permissions;
101 Member<HTMLIFrameElementAllow> m_allow; 90 Member<HTMLIFrameElementAllow> m_allow;
102 91
103 WebVector<mojom::blink::PermissionName> m_delegatedPermissions;
104 WebVector<WebFeaturePolicyFeature> m_allowedFeatures; 92 WebVector<WebFeaturePolicyFeature> m_allowedFeatures;
105 93
106 ReferrerPolicy m_referrerPolicy; 94 ReferrerPolicy m_referrerPolicy;
107 }; 95 };
108 96
109 } // namespace blink 97 } // namespace blink
110 98
111 #endif // HTMLIFrameElement_h 99 #endif // HTMLIFrameElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698