Index: ios/chrome/browser/payments/payment_request_coordinator.h |
diff --git a/ios/chrome/browser/payments/payment_request_coordinator.h b/ios/chrome/browser/payments/payment_request_coordinator.h |
index b2e1d9a0dcb7958b772b769db1ee2d1ef5518db0..ff99043eb148f5758c1e66e44a0a91a76f1ee77f 100644 |
--- a/ios/chrome/browser/payments/payment_request_coordinator.h |
+++ b/ios/chrome/browser/payments/payment_request_coordinator.h |
@@ -12,6 +12,7 @@ |
#import "ios/chrome/browser/payments/payment_items_display_coordinator.h" |
#import "ios/chrome/browser/payments/payment_method_selection_coordinator.h" |
#include "ios/chrome/browser/payments/payment_request.h" |
+#include "ios/chrome/browser/payments/payment_request_error_coordinator.h" |
#import "ios/chrome/browser/payments/payment_request_view_controller.h" |
#import "ios/chrome/browser/payments/shipping_address_selection_coordinator.h" |
#import "ios/chrome/browser/payments/shipping_option_selection_coordinator.h" |
@@ -48,6 +49,7 @@ class ChromeBrowserState; |
// provided in the initializer. |
@interface PaymentRequestCoordinator |
: ChromeCoordinator<PaymentRequestViewControllerDelegate, |
+ PaymentRequestErrorCoordinatorDelegate, |
PaymentItemsDisplayCoordinatorDelegate, |
PaymentMethodSelectionCoordinatorDelegate, |
ShippingAddressSelectionCoordinatorDelegate, |
@@ -89,6 +91,9 @@ class ChromeBrowserState; |
// Updates the payment details of the PaymentRequest and updates the UI. |
- (void)updatePaymentDetails:(web::PaymentDetails)paymentDetails; |
+// Displays an error message. Invokes |callback| when the message is dismissed. |
+- (void)displayErrorWithCallback:(void (^)())callback; |
+ |
// Called when a credit card has been successfully unmasked. |
- (void)fullCardRequestDidSucceedWithCard:(const autofill::CreditCard&)card |
CVC:(const base::string16&)cvc; |