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

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

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Moar tests. Created 3 years, 11 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 ~HTMLIFrameElement() override; 46 ~HTMLIFrameElement() override;
47 DOMTokenList* sandbox() const; 47 DOMTokenList* sandbox() const;
48 DOMTokenList* permissions() const; 48 DOMTokenList* permissions() const;
49 49
50 void sandboxValueWasSet(); 50 void sandboxValueWasSet();
51 void permissionsValueWasSet(); 51 void permissionsValueWasSet();
52 52
53 private: 53 private:
54 explicit HTMLIFrameElement(Document&); 54 explicit HTMLIFrameElement(Document&);
55 55
56 void setShouldCollapse(bool) override;
57
56 void parseAttribute(const AttributeModificationParams&) override; 58 void parseAttribute(const AttributeModificationParams&) override;
57 bool isPresentationAttribute(const QualifiedName&) const override; 59 bool isPresentationAttribute(const QualifiedName&) const override;
58 void collectStyleForPresentationAttribute(const QualifiedName&, 60 void collectStyleForPresentationAttribute(const QualifiedName&,
59 const AtomicString&, 61 const AtomicString&,
60 MutableStylePropertySet*) override; 62 MutableStylePropertySet*) override;
61 63
62 InsertionNotificationRequest insertedInto(ContainerNode*) override; 64 InsertionNotificationRequest insertedInto(ContainerNode*) override;
63 void removedFrom(ContainerNode*) override; 65 void removedFrom(ContainerNode*) override;
64 66
65 bool layoutObjectIsNeeded(const ComputedStyle&) override; 67 bool layoutObjectIsNeeded(const ComputedStyle&) override;
(...skipping 15 matching lines...) Expand all
81 return m_delegatedPermissions; 83 return m_delegatedPermissions;
82 } 84 }
83 85
84 bool initializePermissionsAttribute(); 86 bool initializePermissionsAttribute();
85 87
86 AtomicString m_name; 88 AtomicString m_name;
87 AtomicString m_csp; 89 AtomicString m_csp;
88 bool m_didLoadNonEmptyDocument; 90 bool m_didLoadNonEmptyDocument;
89 bool m_allowFullscreen; 91 bool m_allowFullscreen;
90 bool m_allowPaymentRequest; 92 bool m_allowPaymentRequest;
93 bool m_shouldCollapse;
91 Member<HTMLIFrameElementSandbox> m_sandbox; 94 Member<HTMLIFrameElementSandbox> m_sandbox;
92 Member<HTMLIFrameElementPermissions> m_permissions; 95 Member<HTMLIFrameElementPermissions> m_permissions;
93 96
94 WebVector<WebPermissionType> m_delegatedPermissions; 97 WebVector<WebPermissionType> m_delegatedPermissions;
95 98
96 ReferrerPolicy m_referrerPolicy; 99 ReferrerPolicy m_referrerPolicy;
97 }; 100 };
98 101
99 } // namespace blink 102 } // namespace blink
100 103
101 #endif // HTMLIFrameElement_h 104 #endif // HTMLIFrameElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698