| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
| 16 #include "base/string16.h" | 16 #include "base/string16.h" |
| 17 #include "components/autofill/browser/wallet/required_action.h" | 17 #include "components/autofill/browser/wallet/required_action.h" |
| 18 #include "components/autofill/browser/wallet/wallet_address.h" | 18 #include "components/autofill/browser/wallet/wallet_address.h" |
| 19 #include "components/autofill/common/autofill_export.h" |
| 19 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
| 20 | 21 |
| 21 namespace base { | 22 namespace base { |
| 22 class DictionaryValue; | 23 class DictionaryValue; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace gfx { | 26 namespace gfx { |
| 26 class Image; | 27 class Image; |
| 27 } | 28 } |
| 28 | 29 |
| 29 namespace autofill { | 30 namespace autofill { |
| 30 | 31 |
| 31 FORWARD_DECLARE_TEST(WalletInstrumentWrapperTest, GetInfoCreditCardExpMonth); | 32 FORWARD_DECLARE_TEST(WalletInstrumentWrapperTest, GetInfoCreditCardExpMonth); |
| 32 | 33 |
| 33 namespace wallet { | 34 namespace wallet { |
| 34 | 35 |
| 35 class WalletItemsTest; | 36 class WalletItemsTest; |
| 36 | 37 |
| 37 // WalletItems is a collection of cards and addresses that a user picks from to | 38 // 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 | 39 // 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. | 40 // 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 | 41 // 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. | 42 // using Online Wallet and those actions are present in the object as well. |
| 42 class WalletItems { | 43 class AUTOFILL_EXPORT WalletItems { |
| 43 public: | 44 public: |
| 44 // Container for all information about a credit card except for it's card | 45 // Container for all information about a credit card except for it's card |
| 45 // verfication number (CVN) and it's complete primary account number (PAN). | 46 // verfication number (CVN) and it's complete primary account number (PAN). |
| 46 class MaskedInstrument { | 47 class AUTOFILL_EXPORT MaskedInstrument { |
| 47 public: | 48 public: |
| 48 enum Type { | 49 enum Type { |
| 49 AMEX, | 50 AMEX, |
| 50 DISCOVER, | 51 DISCOVER, |
| 51 MAESTRO, | 52 MAESTRO, |
| 52 MASTER_CARD, | 53 MASTER_CARD, |
| 53 SOLO, | 54 SOLO, |
| 54 SWITCH, | 55 SWITCH, |
| 55 UNKNOWN, // Catch all type. | 56 UNKNOWN, // Catch all type. |
| 56 VISA, | 57 VISA, |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // Legal documents the user must accept before using Online Wallet. | 284 // Legal documents the user must accept before using Online Wallet. |
| 284 ScopedVector<LegalDocument> legal_documents_; | 285 ScopedVector<LegalDocument> legal_documents_; |
| 285 | 286 |
| 286 DISALLOW_COPY_AND_ASSIGN(WalletItems); | 287 DISALLOW_COPY_AND_ASSIGN(WalletItems); |
| 287 }; | 288 }; |
| 288 | 289 |
| 289 } // namespace wallet | 290 } // namespace wallet |
| 290 } // namespace autofill | 291 } // namespace autofill |
| 291 | 292 |
| 292 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ | 293 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ITEMS_H_ |
| OLD | NEW |