| Index: components/payments/payment_request.mojom
|
| diff --git a/components/payments/payment_request.mojom b/components/payments/payment_request.mojom
|
| index 5820909d98b46c5c7153410b8d685e226a1314fc..4b4ae65858dda129886cc382e3bc49433fb9905f 100644
|
| --- a/components/payments/payment_request.mojom
|
| +++ b/components/payments/payment_request.mojom
|
| @@ -77,6 +77,12 @@ enum PaymentErrorReason {
|
| NOT_SUPPORTED
|
| };
|
|
|
| +enum ActivePaymentQueryResult {
|
| + CAN_MAKE_ACTIVE_PAYMENT,
|
| + CANNOT_MAKE_ACTIVE_PAYMENT,
|
| + QUERY_QUOTA_EXCEEDED
|
| +};
|
| +
|
| interface PaymentRequestClient {
|
| OnShippingAddressChange(PaymentAddress address);
|
| OnShippingOptionChange(string shipping_option_id);
|
| @@ -84,6 +90,7 @@ interface PaymentRequestClient {
|
| OnError(PaymentErrorReason error);
|
| OnComplete();
|
| OnAbort(bool aborted_successfully);
|
| + OnCanMakeActivePayment(ActivePaymentQueryResult result);
|
| };
|
|
|
| struct PaymentItem {
|
| @@ -156,4 +163,5 @@ interface PaymentRequest {
|
| UpdateWith(PaymentDetails details);
|
| Abort();
|
| Complete(PaymentComplete result);
|
| + CanMakeActivePayment();
|
| };
|
|
|