| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_WALLET_WALLET_ITEMS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class DictionaryValue; | 22 class DictionaryValue; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace gfx { | 25 namespace gfx { |
| 26 class Image; | 26 class Image; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace autofill { | 29 namespace autofill { |
| 30 | 30 |
| 31 FORWARD_DECLARE_TEST(WalletInstrumentWrapperTest, GetInfoCreditCardExpMonth); | 31 FORWARD_DECLARE_TEST(WalletInstrumentWrapperTest, GetInfoCreditCardExpMonth); |
| 32 FORWARD_DECLARE_TEST(WalletInstrumentWrapperTest, |
| 33 GetDisplayTextEmptyWhenExpired); |
| 32 | 34 |
| 33 namespace wallet { | 35 namespace wallet { |
| 34 | 36 |
| 35 class WalletItemsTest; | 37 class WalletItemsTest; |
| 36 | 38 |
| 37 // WalletItems is a collection of cards and addresses that a user picks from to | 39 // WalletItems is a collection of cards and addresses that a user picks from to |
| 38 // construct a full wallet. However, it also provides a transaction ID which | 40 // construct a full wallet. However, it also provides a transaction ID which |
| 39 // must be used throughout all API calls being made using this data. | 41 // must be used throughout all API calls being made using this data. |
| 40 // Additionally, user actions may be required before a purchase can be completed | 42 // Additionally, user actions may be required before a purchase can be completed |
| 41 // using Online Wallet and those actions are present in the object as well. | 43 // using Online Wallet and those actions are present in the object as well. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 int expiration_year() const { return expiration_year_; } | 104 int expiration_year() const { return expiration_year_; } |
| 103 const Address& address() const { return *address_; } | 105 const Address& address() const { return *address_; } |
| 104 const Status& status() const { return status_; } | 106 const Status& status() const { return status_; } |
| 105 const std::string& object_id() const { return object_id_; } | 107 const std::string& object_id() const { return object_id_; } |
| 106 | 108 |
| 107 private: | 109 private: |
| 108 friend class WalletItemsTest; | 110 friend class WalletItemsTest; |
| 109 friend scoped_ptr<MaskedInstrument> GetTestMaskedInstrument(); | 111 friend scoped_ptr<MaskedInstrument> GetTestMaskedInstrument(); |
| 110 FRIEND_TEST_ALL_PREFIXES(::autofill::WalletInstrumentWrapperTest, | 112 FRIEND_TEST_ALL_PREFIXES(::autofill::WalletInstrumentWrapperTest, |
| 111 GetInfoCreditCardExpMonth); | 113 GetInfoCreditCardExpMonth); |
| 114 FRIEND_TEST_ALL_PREFIXES(::autofill::WalletInstrumentWrapperTest, |
| 115 GetDisplayTextEmptyWhenExpired); |
| 112 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateMaskedInstrument); | 116 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateMaskedInstrument); |
| 113 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateWalletItems); | 117 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateWalletItems); |
| 114 | 118 |
| 115 MaskedInstrument(const base::string16& descriptve_name, | 119 MaskedInstrument(const base::string16& descriptve_name, |
| 116 const Type& type, | 120 const Type& type, |
| 117 const std::vector<base::string16>& supported_currencies, | 121 const std::vector<base::string16>& supported_currencies, |
| 118 const base::string16& last_four_digits, | 122 const base::string16& last_four_digits, |
| 119 int expiration_month, | 123 int expiration_month, |
| 120 int expiration_year, | 124 int expiration_year, |
| 121 scoped_ptr<Address> address, | 125 scoped_ptr<Address> address, |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // Legal documents the user must accept before using Online Wallet. | 287 // Legal documents the user must accept before using Online Wallet. |
| 284 ScopedVector<LegalDocument> legal_documents_; | 288 ScopedVector<LegalDocument> legal_documents_; |
| 285 | 289 |
| 286 DISALLOW_COPY_AND_ASSIGN(WalletItems); | 290 DISALLOW_COPY_AND_ASSIGN(WalletItems); |
| 287 }; | 291 }; |
| 288 | 292 |
| 289 } // namespace wallet | 293 } // namespace wallet |
| 290 } // namespace autofill | 294 } // namespace autofill |
| 291 | 295 |
| 292 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ | 296 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ |
| OLD | NEW |