Lines Matching refs:credit_card
5 #include "chrome/browser/autofill/credit_card.h"
152 CreditCard::CreditCard(const CreditCard& credit_card) : FormGroup() {
153 operator=(credit_card);
343 void CreditCard::operator=(const CreditCard& credit_card) {
344 if (this == &credit_card)
347 number_ = credit_card.number_;
348 name_on_card_ = credit_card.name_on_card_;
349 type_ = credit_card.type_;
350 expiration_month_ = credit_card.expiration_month_;
351 expiration_year_ = credit_card.expiration_year_;
352 guid_ = credit_card.guid_;
355 int CreditCard::Compare(const CreditCard& credit_card) const {
365 credit_card.GetInfo(types[index]));
373 bool CreditCard::operator==(const CreditCard& credit_card) const {
374 if (guid_ != credit_card.guid_)
377 return Compare(credit_card) == 0;
380 bool CreditCard::operator!=(const CreditCard& credit_card) const {
381 return !operator==(credit_card);
531 std::ostream& operator<<(std::ostream& os, const CreditCard& credit_card) {
533 << UTF16ToUTF8(credit_card.Label())
535 << credit_card.guid()
537 << UTF16ToUTF8(credit_card.GetInfo(CREDIT_CARD_NAME))
539 << UTF16ToUTF8(credit_card.GetInfo(CREDIT_CARD_TYPE))
541 << UTF16ToUTF8(credit_card.GetInfo(CREDIT_CARD_NUMBER))
543 << UTF16ToUTF8(credit_card.GetInfo(CREDIT_CARD_EXP_MONTH))
545 << UTF16ToUTF8(credit_card.GetInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR));