Index: components/autofill/core/browser/credit_card.h |
diff --git a/components/autofill/core/browser/credit_card.h b/components/autofill/core/browser/credit_card.h |
index 4dc8bb9bc934691ff33ef0e11f73e970a18a17a9..ef83a56d55b55bb7951014aa24a46d55d73c837d 100644 |
--- a/components/autofill/core/browser/credit_card.h |
+++ b/components/autofill/core/browser/credit_card.h |
@@ -101,6 +101,9 @@ class CreditCard : public AutofillDataModel { |
const std::string& network() const { return network_; } |
+ const std::string& bank_name() const { return bank_name_; } |
+ void set_bank_name(const std::string& bank_name) { bank_name_ = bank_name; } |
+ |
int expiration_month() const { return expiration_month_; } |
int expiration_year() const { return expiration_year_; } |
@@ -209,6 +212,8 @@ class CreditCard : public AutofillDataModel { |
base::string16 NetworkForDisplay() const; |
// A label for this card formatted as 'IssuerNetwork - 2345'. |
base::string16 NetworkAndLastFourDigits() const; |
+ // A label for this card formatted as 'BankName - 2345'. |
+ base::string16 BankNameAndLastFourDigits() const; |
// Localized expiration for this card formatted as 'Exp: 06/17'. |
base::string16 AbbreviatedExpirationDateForDisplay() const; |
// Returns the date when the card was last used in autofill. |
@@ -249,6 +254,9 @@ class CreditCard : public AutofillDataModel { |
// below. |
std::string network_; |
+ // The issuer bank name of the card. |
+ std::string bank_name_; |
+ |
// These members are zero if not present. |
int expiration_month_; |
int expiration_year_; |