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

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

Issue 2250793003: Separate PaymentRequest initialization and display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update payment-request-mock.js Created 4 years, 4 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 // 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void OnPaymentResponse(mojom::blink::PaymentResponsePtr) override; 90 void OnPaymentResponse(mojom::blink::PaymentResponsePtr) override;
91 void OnError(mojom::blink::PaymentErrorReason) override; 91 void OnError(mojom::blink::PaymentErrorReason) override;
92 void OnComplete() override; 92 void OnComplete() override;
93 void OnAbort(bool abortedSuccessfully) override; 93 void OnAbort(bool abortedSuccessfully) override;
94 94
95 void onCompleteTimeout(TimerBase*); 95 void onCompleteTimeout(TimerBase*);
96 96
97 // Clears the promise resolvers and closes the Mojo connection. 97 // Clears the promise resolvers and closes the Mojo connection.
98 void clearResolversAndCloseMojoConnection(); 98 void clearResolversAndCloseMojoConnection();
99 99
100 Vector<MethodData> m_methodData;
101 PaymentDetails m_details;
102 PaymentOptions m_options; 100 PaymentOptions m_options;
103 Member<PaymentAddress> m_shippingAddress; 101 Member<PaymentAddress> m_shippingAddress;
104 String m_shippingOption; 102 String m_shippingOption;
105 Member<ScriptPromiseResolver> m_showResolver; 103 Member<ScriptPromiseResolver> m_showResolver;
106 Member<ScriptPromiseResolver> m_completeResolver; 104 Member<ScriptPromiseResolver> m_completeResolver;
107 Member<ScriptPromiseResolver> m_abortResolver; 105 Member<ScriptPromiseResolver> m_abortResolver;
108 mojom::blink::PaymentRequestPtr m_paymentProvider; 106 mojom::blink::PaymentRequestPtr m_paymentProvider;
109 mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding; 107 mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding;
110 Timer<PaymentRequest> m_completeTimer; 108 Timer<PaymentRequest> m_completeTimer;
111 }; 109 };
112 110
113 } // namespace blink 111 } // namespace blink
114 112
115 #endif // PaymentRequest_h 113 #endif // PaymentRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698