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

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

Issue 1949653002: Work around a clang-cl devirtualization bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaymentRequest_h 5 #ifndef PaymentRequest_h
6 #define PaymentRequest_h 6 #define PaymentRequest_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 12 matching lines...) Expand all
23 #include "wtf/Vector.h" 23 #include "wtf/Vector.h"
24 #include "wtf/text/WTFString.h" 24 #include "wtf/text/WTFString.h"
25 25
26 namespace blink { 26 namespace blink {
27 27
28 class ExceptionState; 28 class ExceptionState;
29 class ScriptPromiseResolver; 29 class ScriptPromiseResolver;
30 class ScriptState; 30 class ScriptState;
31 class ShippingAddress; 31 class ShippingAddress;
32 32
33 class MODULES_EXPORT PaymentRequest final : public EventTargetWithInlineData, WT F_NON_EXPORTED_BASE(public mojom::blink::PaymentRequestClient), public PaymentCo mpleter, public ContextLifecycleObserver { 33 // TODO(thakis): Make this class final again once https://crbug.com/608705 is fi xed.
34 class MODULES_EXPORT PaymentRequest /* final */ : public EventTargetWithInlineDa ta, WTF_NON_EXPORTED_BASE(public mojom::blink::PaymentRequestClient), public Pay mentCompleter, public ContextLifecycleObserver {
34 DEFINE_WRAPPERTYPEINFO(); 35 DEFINE_WRAPPERTYPEINFO();
35 USING_GARBAGE_COLLECTED_MIXIN(PaymentRequest) 36 USING_GARBAGE_COLLECTED_MIXIN(PaymentRequest)
36 WTF_MAKE_NONCOPYABLE(PaymentRequest); 37 WTF_MAKE_NONCOPYABLE(PaymentRequest);
37 38
38 public: 39 public:
39 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM ethods, const PaymentDetails&, ExceptionState&); 40 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM ethods, const PaymentDetails&, ExceptionState&);
40 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM ethods, const PaymentDetails&, const PaymentOptions&, ExceptionState&); 41 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM ethods, const PaymentDetails&, const PaymentOptions&, ExceptionState&);
41 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM ethods, const PaymentDetails&, const PaymentOptions&, const ScriptValue& data, E xceptionState&); 42 static PaymentRequest* create(ScriptState*, const Vector<String>& supportedM ethods, const PaymentDetails&, const PaymentOptions&, const ScriptValue& data, E xceptionState&);
42 43
43 virtual ~PaymentRequest(); 44 virtual ~PaymentRequest();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 String m_shippingOption; 85 String m_shippingOption;
85 Member<ScriptPromiseResolver> m_showResolver; 86 Member<ScriptPromiseResolver> m_showResolver;
86 Member<ScriptPromiseResolver> m_completeResolver; 87 Member<ScriptPromiseResolver> m_completeResolver;
87 mojom::blink::PaymentRequestPtr m_paymentProvider; 88 mojom::blink::PaymentRequestPtr m_paymentProvider;
88 mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding; 89 mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding;
89 }; 90 };
90 91
91 } // namespace blink 92 } // namespace blink
92 93
93 #endif // PaymentRequest_h 94 #endif // PaymentRequest_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698