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

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

Issue 2394473002: iframes with allowpaymentrequest attribute are allowed to make payment requests. (Closed)
Patch Set: Created 4 years, 2 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 bool loadedNonEmptyDocument() const override { 66 bool loadedNonEmptyDocument() const override {
67 return m_didLoadNonEmptyDocument; 67 return m_didLoadNonEmptyDocument;
68 } 68 }
69 void didLoadNonEmptyDocument() override { m_didLoadNonEmptyDocument = true; } 69 void didLoadNonEmptyDocument() override { m_didLoadNonEmptyDocument = true; }
70 bool isInteractiveContent() const override; 70 bool isInteractiveContent() const override;
71 71
72 ReferrerPolicy referrerPolicyAttribute() override; 72 ReferrerPolicy referrerPolicyAttribute() override;
73 73
74 bool allowFullscreen() const override { return m_allowFullscreen; } 74 bool allowFullscreen() const override { return m_allowFullscreen; }
75 75
76 bool allowPaymentRequest() const override { return m_allowPaymentRequest; }
77
76 const WebVector<WebPermissionType>& delegatedPermissions() const override { 78 const WebVector<WebPermissionType>& delegatedPermissions() const override {
77 return m_delegatedPermissions; 79 return m_delegatedPermissions;
78 } 80 }
79 81
80 bool initializePermissionsAttribute(); 82 bool initializePermissionsAttribute();
81 83
82 AtomicString m_name; 84 AtomicString m_name;
83 AtomicString m_csp; 85 AtomicString m_csp;
84 bool m_didLoadNonEmptyDocument; 86 bool m_didLoadNonEmptyDocument;
85 bool m_allowFullscreen; 87 bool m_allowFullscreen;
88 bool m_allowPaymentRequest;
86 Member<HTMLIFrameElementSandbox> m_sandbox; 89 Member<HTMLIFrameElementSandbox> m_sandbox;
87 Member<HTMLIFrameElementPermissions> m_permissions; 90 Member<HTMLIFrameElementPermissions> m_permissions;
88 91
89 WebVector<WebPermissionType> m_delegatedPermissions; 92 WebVector<WebPermissionType> m_delegatedPermissions;
90 93
91 ReferrerPolicy m_referrerPolicy; 94 ReferrerPolicy m_referrerPolicy;
92 }; 95 };
93 96
94 } // namespace blink 97 } // namespace blink
95 98
96 #endif // HTMLIFrameElement_h 99 #endif // HTMLIFrameElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698