| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 FULL_SERVER_CARD, | 39 FULL_SERVER_CARD, |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 // The status of this credit card. Only used for server cards. | 42 // The status of this credit card. Only used for server cards. |
| 43 enum ServerStatus { | 43 enum ServerStatus { |
| 44 EXPIRED, | 44 EXPIRED, |
| 45 OK, | 45 OK, |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 CreditCard(const std::string& guid, const std::string& origin); | 48 CreditCard(const std::string& guid, const std::string& origin); |
| 49 CreditCard(const base::string16& card_number, | |
| 50 int expiration_month, | |
| 51 int expiration_year); | |
| 52 | 49 |
| 53 // Creates a server card. The type must be MASKED_SERVER_CARD or | 50 // Creates a server card. The type must be MASKED_SERVER_CARD or |
| 54 // FULL_SERVER_CARD. | 51 // FULL_SERVER_CARD. |
| 55 CreditCard(RecordType type, const std::string& server_id); | 52 CreditCard(RecordType type, const std::string& server_id); |
| 56 | 53 |
| 57 // For use in STL containers. | 54 // For use in STL containers. |
| 58 CreditCard(); | 55 CreditCard(); |
| 59 CreditCard(const CreditCard& credit_card); | 56 CreditCard(const CreditCard& credit_card); |
| 60 ~CreditCard() override; | 57 ~CreditCard() override; |
| 61 | 58 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 extern const char kDiscoverCard[]; | 265 extern const char kDiscoverCard[]; |
| 269 extern const char kGenericCard[]; | 266 extern const char kGenericCard[]; |
| 270 extern const char kJCBCard[]; | 267 extern const char kJCBCard[]; |
| 271 extern const char kMasterCard[]; | 268 extern const char kMasterCard[]; |
| 272 extern const char kUnionPay[]; | 269 extern const char kUnionPay[]; |
| 273 extern const char kVisaCard[]; | 270 extern const char kVisaCard[]; |
| 274 | 271 |
| 275 } // namespace autofill | 272 } // namespace autofill |
| 276 | 273 |
| 277 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_ | 274 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_ |
| OLD | NEW |