Index: components/payments/payment_request.mojom |
diff --git a/components/payments/payment_request.mojom b/components/payments/payment_request.mojom |
index de147d67d55df32bf67458a1315819842452d1bd..380f706ef3fd7b4c0f25a3a2b208b573cc2685a7 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(); |
}; |