| 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..83ce1a35871b21519c67acbda701f6deed54f653 100644
|
| --- a/ios/chrome/browser/payments/payment_request.h
|
| +++ b/ios/chrome/browser/payments/payment_request.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_H_
|
| #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_H_
|
|
|
| +#include <set>
|
| #include <vector>
|
|
|
| #include "base/macros.h"
|
| @@ -34,6 +35,10 @@ class PaymentRequest {
|
| autofill::PersonalDataManager* personal_data_manager);
|
| ~PaymentRequest();
|
|
|
| + autofill::PersonalDataManager* GetPersonalDataManager() const {
|
| + return personal_data_manager_;
|
| + }
|
| +
|
| // Returns the payment details from |web_payment_request_|.
|
| const web::PaymentDetails& payment_details() const {
|
| return web_payment_request_->details;
|
| @@ -94,6 +99,13 @@ class PaymentRequest {
|
| return shipping_profiles_;
|
| }
|
|
|
| + const std::set<std::string>& supported_card_networks() {
|
| + 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 +179,9 @@ class PaymentRequest {
|
| std::vector<autofill::CreditCard*> credit_cards_;
|
| autofill::CreditCard* selected_credit_card_;
|
|
|
| + // A set of supported basic card networks.
|
| + std::set<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_;
|
|
|