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

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

Issue 2657623005: WIP: Give developers an opt-in mechanism to block some parser-inserted scripts.
Patch Set: Refactor. 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
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.
(...skipping 30 matching lines...) Expand all
41 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElement); 41 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElement);
42 42
43 public: 43 public:
44 DECLARE_VIRTUAL_TRACE(); 44 DECLARE_VIRTUAL_TRACE();
45 45
46 static HTMLIFrameElement* create(Document&, bool createdByFragmentParser); 46 static HTMLIFrameElement* create(Document&, bool createdByFragmentParser);
47 ~HTMLIFrameElement() override; 47 ~HTMLIFrameElement() override;
48 DOMTokenList* sandbox() const; 48 DOMTokenList* sandbox() const;
49 DOMTokenList* permissions() const; 49 DOMTokenList* permissions() const;
50 bool createdByFragmentParser() const { return m_createdByFragmentParser; } 50 bool createdByFragmentParser() const { return m_createdByFragmentParser; }
51 bool createdByDocumentWrite() const { return m_createdByDocumentWrite; }
51 52
52 void sandboxValueWasSet(); 53 void sandboxValueWasSet();
53 void permissionsValueWasSet(); 54 void permissionsValueWasSet();
54 55
55 private: 56 private:
56 HTMLIFrameElement(Document&, bool createdByFragmentParser); 57 HTMLIFrameElement(Document&, bool createdByFragmentParser);
57 58
58 void parseAttribute(const AttributeModificationParams&) override; 59 void parseAttribute(const AttributeModificationParams&) override;
59 bool isPresentationAttribute(const QualifiedName&) const override; 60 bool isPresentationAttribute(const QualifiedName&) const override;
60 void collectStyleForPresentationAttribute(const QualifiedName&, 61 void collectStyleForPresentationAttribute(const QualifiedName&,
(...skipping 23 matching lines...) Expand all
84 } 85 }
85 86
86 bool initializePermissionsAttribute(); 87 bool initializePermissionsAttribute();
87 88
88 AtomicString m_name; 89 AtomicString m_name;
89 AtomicString m_csp; 90 AtomicString m_csp;
90 bool m_didLoadNonEmptyDocument; 91 bool m_didLoadNonEmptyDocument;
91 bool m_allowFullscreen; 92 bool m_allowFullscreen;
92 bool m_allowPaymentRequest; 93 bool m_allowPaymentRequest;
93 const bool m_createdByFragmentParser; 94 const bool m_createdByFragmentParser;
95 const bool m_createdByDocumentWrite;
94 Member<HTMLIFrameElementSandbox> m_sandbox; 96 Member<HTMLIFrameElementSandbox> m_sandbox;
95 Member<HTMLIFrameElementPermissions> m_permissions; 97 Member<HTMLIFrameElementPermissions> m_permissions;
96 98
97 WebVector<WebPermissionType> m_delegatedPermissions; 99 WebVector<WebPermissionType> m_delegatedPermissions;
98 100
99 ReferrerPolicy m_referrerPolicy; 101 ReferrerPolicy m_referrerPolicy;
100 }; 102 };
101 103
102 } // namespace blink 104 } // namespace blink
103 105
104 #endif // HTMLIFrameElement_h 106 #endif // HTMLIFrameElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698