| 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_CONTENT_BROWSER_WALLET_INSTRUMENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_INSTRUMENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_INSTRUMENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_INSTRUMENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 60 } |
| 61 const base::string16& card_verification_number() const { | 61 const base::string16& card_verification_number() const { |
| 62 return card_verification_number_; | 62 return card_verification_number_; |
| 63 } | 63 } |
| 64 int expiration_month() const { return expiration_month_; } | 64 int expiration_month() const { return expiration_month_; } |
| 65 int expiration_year() const { return expiration_year_; } | 65 int expiration_year() const { return expiration_year_; } |
| 66 const Address* address() const { return address_.get(); } | 66 const Address* address() const { return address_.get(); } |
| 67 FormOfPayment form_of_payment() const { return form_of_payment_; } | 67 FormOfPayment form_of_payment() const { return form_of_payment_; } |
| 68 const base::string16& last_four_digits() const { return last_four_digits_; } | 68 const base::string16& last_four_digits() const { return last_four_digits_; } |
| 69 const std::string& object_id() const { return object_id_; } | 69 const std::string& object_id() const { return object_id_; } |
| 70 void set_object_id(const std::string& object_id) { object_id_ = object_id; } | |
| 71 | 70 |
| 72 private: | 71 private: |
| 73 void Init(); | 72 void Init(); |
| 74 | 73 |
| 75 // |primary_account_number_| is expected to be \d{12-19}. | 74 // |primary_account_number_| is expected to be \d{12-19}. |
| 76 base::string16 primary_account_number_; | 75 base::string16 primary_account_number_; |
| 77 | 76 |
| 78 // |card_verification_number_| is expected to be \d{3-4}. | 77 // |card_verification_number_| is expected to be \d{3-4}. |
| 79 base::string16 card_verification_number_; | 78 base::string16 card_verification_number_; |
| 80 | 79 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 96 // Externalized Online Wallet id for this instrument. | 95 // Externalized Online Wallet id for this instrument. |
| 97 std::string object_id_; | 96 std::string object_id_; |
| 98 | 97 |
| 99 DISALLOW_ASSIGN(Instrument); | 98 DISALLOW_ASSIGN(Instrument); |
| 100 }; | 99 }; |
| 101 | 100 |
| 102 } // namespace wallet | 101 } // namespace wallet |
| 103 } // namespace autofill | 102 } // namespace autofill |
| 104 | 103 |
| 105 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_INSTRUMENT_H_ | 104 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_INSTRUMENT_H_ |
| OLD | NEW |