| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ | 6 #define CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <iosfwd> | 9 #include <iosfwd> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 virtual ~CreditCard(); | 25 virtual ~CreditCard(); |
| 26 | 26 |
| 27 // FormGroup implementation: | 27 // FormGroup implementation: |
| 28 virtual string16 GetInfo(AutofillFieldType type) const OVERRIDE; | 28 virtual string16 GetInfo(AutofillFieldType type) const OVERRIDE; |
| 29 virtual void SetInfo(AutofillFieldType type, const string16& value) OVERRIDE; | 29 virtual void SetInfo(AutofillFieldType type, const string16& value) OVERRIDE; |
| 30 virtual string16 GetCanonicalizedInfo(AutofillFieldType type) const OVERRIDE; | 30 virtual string16 GetCanonicalizedInfo(AutofillFieldType type) const OVERRIDE; |
| 31 virtual bool SetCanonicalizedInfo(AutofillFieldType type, | 31 virtual bool SetCanonicalizedInfo(AutofillFieldType type, |
| 32 const string16& value) OVERRIDE; | 32 const string16& value) OVERRIDE; |
| 33 virtual void GetMatchingTypes(const string16& text, | 33 virtual void GetMatchingTypes(const string16& text, |
| 34 FieldTypeSet* matching_types) const OVERRIDE; | 34 FieldTypeSet* matching_types) const OVERRIDE; |
| 35 |
| 35 // Credit card preview summary, for example: ******1234, Exp: 01/2020 | 36 // Credit card preview summary, for example: ******1234, Exp: 01/2020 |
| 36 virtual const string16 Label() const; | 37 const string16 Label() const; |
| 37 | 38 |
| 38 // Special method to set value for HTML5 month input type. | 39 // Special method to set value for HTML5 month input type. |
| 39 void SetInfoForMonthInputType(const string16& value); | 40 void SetInfoForMonthInputType(const string16& value); |
| 40 | 41 |
| 41 // The number altered for display, for example: ******1234 | 42 // The number altered for display, for example: ******1234 |
| 42 string16 ObfuscatedNumber() const; | 43 string16 ObfuscatedNumber() const; |
| 43 // The last four digits of the credit card number. | 44 // The last four digits of the credit card number. |
| 44 string16 LastFourDigits() const; | 45 string16 LastFourDigits() const; |
| 45 | 46 |
| 46 const std::string& type() const { return type_; } | 47 const std::string& type() const { return type_; } |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 extern const char* const kAmericanExpressCard; | 132 extern const char* const kAmericanExpressCard; |
| 132 extern const char* const kDinersCard; | 133 extern const char* const kDinersCard; |
| 133 extern const char* const kDiscoverCard; | 134 extern const char* const kDiscoverCard; |
| 134 extern const char* const kGenericCard; | 135 extern const char* const kGenericCard; |
| 135 extern const char* const kJCBCard; | 136 extern const char* const kJCBCard; |
| 136 extern const char* const kMasterCard; | 137 extern const char* const kMasterCard; |
| 137 extern const char* const kSoloCard; | 138 extern const char* const kSoloCard; |
| 138 extern const char* const kVisaCard; | 139 extern const char* const kVisaCard; |
| 139 | 140 |
| 140 #endif // CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ | 141 #endif // CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ |
| OLD | NEW |