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

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

Issue 2645813006: Download web payment manifests. (Closed)
Patch Set: Address more comments 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 // 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // payments::mojom::blink::PaymentRequestClient: 101 // payments::mojom::blink::PaymentRequestClient:
102 void OnShippingAddressChange( 102 void OnShippingAddressChange(
103 payments::mojom::blink::PaymentAddressPtr) override; 103 payments::mojom::blink::PaymentAddressPtr) override;
104 void OnShippingOptionChange(const String& shippingOptionId) override; 104 void OnShippingOptionChange(const String& shippingOptionId) override;
105 void OnPaymentResponse(payments::mojom::blink::PaymentResponsePtr) override; 105 void OnPaymentResponse(payments::mojom::blink::PaymentResponsePtr) override;
106 void OnError(payments::mojom::blink::PaymentErrorReason) override; 106 void OnError(payments::mojom::blink::PaymentErrorReason) override;
107 void OnComplete() override; 107 void OnComplete() override;
108 void OnAbort(bool abortedSuccessfully) override; 108 void OnAbort(bool abortedSuccessfully) override;
109 void OnCanMakePayment( 109 void OnCanMakePayment(
110 payments::mojom::blink::CanMakePaymentQueryResult) override; 110 payments::mojom::blink::CanMakePaymentQueryResult) override;
111 void ParsePaymentManifest(const String& content,
112 const ParsePaymentManifestCallback&) override;
111 113
112 void onCompleteTimeout(TimerBase*); 114 void onCompleteTimeout(TimerBase*);
113 115
114 // Clears the promise resolvers and closes the Mojo connection. 116 // Clears the promise resolvers and closes the Mojo connection.
115 void clearResolversAndCloseMojoConnection(); 117 void clearResolversAndCloseMojoConnection();
116 118
117 PaymentOptions m_options; 119 PaymentOptions m_options;
118 Member<PaymentAddress> m_shippingAddress; 120 Member<PaymentAddress> m_shippingAddress;
119 String m_shippingOption; 121 String m_shippingOption;
120 String m_shippingType; 122 String m_shippingType;
121 Member<ScriptPromiseResolver> m_showResolver; 123 Member<ScriptPromiseResolver> m_showResolver;
122 Member<ScriptPromiseResolver> m_completeResolver; 124 Member<ScriptPromiseResolver> m_completeResolver;
123 Member<ScriptPromiseResolver> m_abortResolver; 125 Member<ScriptPromiseResolver> m_abortResolver;
124 Member<ScriptPromiseResolver> m_canMakePaymentResolver; 126 Member<ScriptPromiseResolver> m_canMakePaymentResolver;
125 payments::mojom::blink::PaymentRequestPtr m_paymentProvider; 127 payments::mojom::blink::PaymentRequestPtr m_paymentProvider;
126 mojo::Binding<payments::mojom::blink::PaymentRequestClient> m_clientBinding; 128 mojo::Binding<payments::mojom::blink::PaymentRequestClient> m_clientBinding;
127 TaskRunnerTimer<PaymentRequest> m_completeTimer; 129 TaskRunnerTimer<PaymentRequest> m_completeTimer;
128 }; 130 };
129 131
130 } // namespace blink 132 } // namespace blink
131 133
132 #endif // PaymentRequest_h 134 #endif // PaymentRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698