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

Side by Side Diff: components/payments/mojom/payment_request.mojom

Issue 2836443002: No rate limit for canMakePayment() on localhost and file://. (Closed)
Patch Set: Comments Created 3 years, 8 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 [JavaPackage="org.chromium.payments.mojom"] 5 [JavaPackage="org.chromium.payments.mojom"]
6 module payments.mojom; 6 module payments.mojom;
7 7
8 // The shipping address that the browser process provides to the renderer 8 // The shipping address that the browser process provides to the renderer
9 // process. Built either by the browser or a payment app. 9 // process. Built either by the browser or a payment app.
10 struct PaymentAddress { 10 struct PaymentAddress {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 enum PaymentErrorReason { 74 enum PaymentErrorReason {
75 UNKNOWN, 75 UNKNOWN,
76 USER_CANCEL, 76 USER_CANCEL,
77 NOT_SUPPORTED 77 NOT_SUPPORTED
78 }; 78 };
79 79
80 enum CanMakePaymentQueryResult { 80 enum CanMakePaymentQueryResult {
81 CAN_MAKE_PAYMENT, 81 CAN_MAKE_PAYMENT,
82 CANNOT_MAKE_PAYMENT, 82 CANNOT_MAKE_PAYMENT,
83 QUERY_QUOTA_EXCEEDED 83 QUERY_QUOTA_EXCEEDED,
84
85 // Used only on localhost and file:// schemes to warn web developer that the
86 // query quota has exceeded, but Chrome is returning an answer anyway.
87 WARNING_CAN_MAKE_PAYMENT,
88 WARNING_CANNOT_MAKE_PAYMENT,
84 }; 89 };
85 90
86 interface PaymentRequestClient { 91 interface PaymentRequestClient {
87 OnShippingAddressChange(PaymentAddress address); 92 OnShippingAddressChange(PaymentAddress address);
88 OnShippingOptionChange(string shipping_option_id); 93 OnShippingOptionChange(string shipping_option_id);
89 OnPaymentResponse(PaymentResponse response); 94 OnPaymentResponse(PaymentResponse response);
90 OnError(PaymentErrorReason error); 95 OnError(PaymentErrorReason error);
91 OnComplete(); 96 OnComplete();
92 OnAbort(bool aborted_successfully); 97 OnAbort(bool aborted_successfully);
93 OnCanMakePayment(CanMakePaymentQueryResult result); 98 OnCanMakePayment(CanMakePaymentQueryResult result);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 Init(PaymentRequestClient client, 219 Init(PaymentRequestClient client,
215 array<PaymentMethodData> method_data, 220 array<PaymentMethodData> method_data,
216 PaymentDetails details, 221 PaymentDetails details,
217 PaymentOptions options); 222 PaymentOptions options);
218 Show(); 223 Show();
219 UpdateWith(PaymentDetails details); 224 UpdateWith(PaymentDetails details);
220 Abort(); 225 Abort();
221 Complete(PaymentComplete result); 226 Complete(PaymentComplete result);
222 CanMakePayment(); 227 CanMakePayment();
223 }; 228 };
OLDNEW
« no previous file with comments | « components/payments/content/origin_security_checker.cc ('k') | third_party/WebKit/Source/modules/payments/PaymentRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698