| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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> GetTestMaskedInstrumentWithId( | 111 friend scoped_ptr<MaskedInstrument> GetTestMaskedInstrumentWithId( |
| 110 const std::string&); | 112 const std::string&); |
| 111 FRIEND_TEST_ALL_PREFIXES(::autofill::WalletInstrumentWrapperTest, | 113 FRIEND_TEST_ALL_PREFIXES(::autofill::WalletInstrumentWrapperTest, |
| 112 GetInfoCreditCardExpMonth); | 114 GetInfoCreditCardExpMonth); |
| 115 FRIEND_TEST_ALL_PREFIXES(::autofill::WalletInstrumentWrapperTest, |
| 116 GetDisplayTextEmptyWhenExpired); |
| 113 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateMaskedInstrument); | 117 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateMaskedInstrument); |
| 114 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateWalletItems); | 118 FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateWalletItems); |
| 115 | 119 |
| 116 MaskedInstrument(const base::string16& descriptve_name, | 120 MaskedInstrument(const base::string16& descriptve_name, |
| 117 const Type& type, | 121 const Type& type, |
| 118 const std::vector<base::string16>& supported_currencies, | 122 const std::vector<base::string16>& supported_currencies, |
| 119 const base::string16& last_four_digits, | 123 const base::string16& last_four_digits, |
| 120 int expiration_month, | 124 int expiration_month, |
| 121 int expiration_year, | 125 int expiration_year, |
| 122 scoped_ptr<Address> address, | 126 scoped_ptr<Address> address, |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 // Legal documents the user must accept before using Online Wallet. | 288 // Legal documents the user must accept before using Online Wallet. |
| 285 ScopedVector<LegalDocument> legal_documents_; | 289 ScopedVector<LegalDocument> legal_documents_; |
| 286 | 290 |
| 287 DISALLOW_COPY_AND_ASSIGN(WalletItems); | 291 DISALLOW_COPY_AND_ASSIGN(WalletItems); |
| 288 }; | 292 }; |
| 289 | 293 |
| 290 } // namespace wallet | 294 } // namespace wallet |
| 291 } // namespace autofill | 295 } // namespace autofill |
| 292 | 296 |
| 293 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ | 297 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ |
| OLD | NEW |