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

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

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Extend tests, fix redirects. Non-PlzNavigate version still broken. 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.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 DOMTokenList* permissions() const; 50 DOMTokenList* permissions() const;
51 DOMTokenList* allow() const; 51 DOMTokenList* allow() const;
52 52
53 void sandboxValueWasSet(); 53 void sandboxValueWasSet();
54 void permissionsValueWasSet(); 54 void permissionsValueWasSet();
55 void allowValueWasSet(); 55 void allowValueWasSet();
56 56
57 private: 57 private:
58 explicit HTMLIFrameElement(Document&); 58 explicit HTMLIFrameElement(Document&);
59 59
60 void setCollapsedByClient(bool) override;
61
60 void parseAttribute(const AttributeModificationParams&) override; 62 void parseAttribute(const AttributeModificationParams&) override;
61 bool isPresentationAttribute(const QualifiedName&) const override; 63 bool isPresentationAttribute(const QualifiedName&) const override;
62 void collectStyleForPresentationAttribute(const QualifiedName&, 64 void collectStyleForPresentationAttribute(const QualifiedName&,
63 const AtomicString&, 65 const AtomicString&,
64 MutableStylePropertySet*) override; 66 MutableStylePropertySet*) override;
65 67
66 InsertionNotificationRequest insertedInto(ContainerNode*) override; 68 InsertionNotificationRequest insertedInto(ContainerNode*) override;
67 void removedFrom(ContainerNode*) override; 69 void removedFrom(ContainerNode*) override;
68 70
69 bool layoutObjectIsNeeded(const ComputedStyle&) override; 71 bool layoutObjectIsNeeded(const ComputedStyle&) override;
(...skipping 16 matching lines...) Expand all
86 return m_delegatedPermissions; 88 return m_delegatedPermissions;
87 } 89 }
88 90
89 bool initializePermissionsAttribute(); 91 bool initializePermissionsAttribute();
90 92
91 AtomicString m_name; 93 AtomicString m_name;
92 AtomicString m_csp; 94 AtomicString m_csp;
93 bool m_didLoadNonEmptyDocument; 95 bool m_didLoadNonEmptyDocument;
94 bool m_allowFullscreen; 96 bool m_allowFullscreen;
95 bool m_allowPaymentRequest; 97 bool m_allowPaymentRequest;
98 bool m_collapsedByClient;
96 Member<HTMLIFrameElementSandbox> m_sandbox; 99 Member<HTMLIFrameElementSandbox> m_sandbox;
97 Member<HTMLIFrameElementPermissions> m_permissions; 100 Member<HTMLIFrameElementPermissions> m_permissions;
98 Member<HTMLIFrameElementAllow> m_allow; 101 Member<HTMLIFrameElementAllow> m_allow;
99 102
100 WebVector<mojom::blink::PermissionName> m_delegatedPermissions; 103 WebVector<mojom::blink::PermissionName> m_delegatedPermissions;
101 WebVector<WebFeaturePolicyFeature> m_allowedFeatureNames; 104 WebVector<WebFeaturePolicyFeature> m_allowedFeatureNames;
102 105
103 ReferrerPolicy m_referrerPolicy; 106 ReferrerPolicy m_referrerPolicy;
104 }; 107 };
105 108
106 } // namespace blink 109 } // namespace blink
107 110
108 #endif // HTMLIFrameElement_h 111 #endif // HTMLIFrameElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698