Chromium Code Reviews| Index: ios/chrome/browser/payments/payment_request.h |
| diff --git a/ios/chrome/browser/payments/payment_request.h b/ios/chrome/browser/payments/payment_request.h |
| index bfcec312bc2abe0c028b86e090209106ad198f94..9b4879b92380cc32bc7ec20f6a6d0d147c4d9bb6 100644 |
| --- a/ios/chrome/browser/payments/payment_request.h |
| +++ b/ios/chrome/browser/payments/payment_request.h |
| @@ -94,6 +94,13 @@ class PaymentRequest { |
| return shipping_profiles_; |
| } |
| + const std::vector<std::string>& supported_card_networks() { |
|
please use gerrit instead
2017/03/16 14:36:40
This method should be "const".
Moe
2017/03/16 15:59:46
Done.
|
| + return supported_card_networks_; |
| + } |
| + |
| + // Adds |credit_card| to the list of cached credit cards. |
| + void AddCreditCard(std::unique_ptr<autofill::CreditCard> credit_card); |
| + |
| // Returns the available autofill credit cards for this user that match a |
| // supported type specified in |web_payment_request_|. |
| const std::vector<autofill::CreditCard*>& credit_cards() const { |
| @@ -167,6 +174,9 @@ class PaymentRequest { |
| std::vector<autofill::CreditCard*> credit_cards_; |
| autofill::CreditCard* selected_credit_card_; |
| + // A vector of supported basic card networks. |
| + std::vector<std::string> supported_card_networks_; |
| + |
| // A vector of pointers to the shipping options in |web_payment_request_|. |
| std::vector<web::PaymentShippingOption*> shipping_options_; |
| web::PaymentShippingOption* selected_shipping_option_; |