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

Side by Side Diff: third_party/WebKit/Source/modules/payments/HTMLIFrameElementPayments.h

Issue 2394473002: iframes with allowpaymentrequest attribute are allowed to make payment requests. (Closed)
Patch Set: Rebased 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef HTMLIFrameElementPayments_h
6 #define HTMLIFrameElementPayments_h
7
8 #include "platform/Supplementable.h"
9 #include "platform/heap/Handle.h"
10
11 namespace blink {
12
13 class HTMLIFrameElement;
14 class QualifiedName;
15
16 class HTMLIFrameElementPayments final
17 : public GarbageCollected<HTMLIFrameElementPayments>,
18 public Supplement<HTMLIFrameElement> {
19 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElementPayments);
20
21 public:
22 static bool fastHasAttribute(const QualifiedName&, const HTMLIFrameElement&);
23 static void setBooleanAttribute(const QualifiedName&,
24 HTMLIFrameElement&,
25 bool);
26 static HTMLIFrameElementPayments& from(HTMLIFrameElement&);
27 static bool allowPaymentRequest(HTMLIFrameElement&);
28
29 DECLARE_VIRTUAL_TRACE();
30
31 private:
32 HTMLIFrameElementPayments();
33
34 static const char* supplementName();
35 };
36
37 } // namespace blink
38
39 #endif // HTMLIFrameElementPayments_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698