| 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_FULL_WALLET_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_FULL_WALLET_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_FULL_WALLET_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_FULL_WALLET_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 class FullWallet { | 31 class FullWallet { |
| 32 public: | 32 public: |
| 33 ~FullWallet(); | 33 ~FullWallet(); |
| 34 | 34 |
| 35 // Returns an empty scoped_ptr if the input invalid, an empty wallet with | 35 // Returns an empty scoped_ptr if the input invalid, an empty wallet with |
| 36 // required actions if there are any, or a valid wallet. | 36 // required actions if there are any, or a valid wallet. |
| 37 static scoped_ptr<FullWallet> | 37 static scoped_ptr<FullWallet> |
| 38 CreateFullWallet(const base::DictionaryValue& dictionary); | 38 CreateFullWallet(const base::DictionaryValue& dictionary); |
| 39 | 39 |
| 40 // Returns corresponding data for |type|. | 40 // Returns corresponding data for |type|. |
| 41 string16 GetInfo(AutofillFieldType type); | 41 base::string16 GetInfo(AutofillFieldType type); |
| 42 | 42 |
| 43 // Whether or not |action| is in |required_actions_|. | 43 // Whether or not |action| is in |required_actions_|. |
| 44 bool HasRequiredAction(RequiredAction action) const; | 44 bool HasRequiredAction(RequiredAction action) const; |
| 45 | 45 |
| 46 bool operator==(const FullWallet& other) const; | 46 bool operator==(const FullWallet& other) const; |
| 47 bool operator!=(const FullWallet& other) const; | 47 bool operator!=(const FullWallet& other) const; |
| 48 | 48 |
| 49 // If there are required actions |billing_address_| might contain NULL. | 49 // If there are required actions |billing_address_| might contain NULL. |
| 50 const Address* billing_address() const { return billing_address_.get(); } | 50 const Address* billing_address() const { return billing_address_.get(); } |
| 51 | 51 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // The one time pad used for FullWallet encryption. | 119 // The one time pad used for FullWallet encryption. |
| 120 std::vector<uint8> one_time_pad_; | 120 std::vector<uint8> one_time_pad_; |
| 121 | 121 |
| 122 DISALLOW_COPY_AND_ASSIGN(FullWallet); | 122 DISALLOW_COPY_AND_ASSIGN(FullWallet); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace wallet | 125 } // namespace wallet |
| 126 } // namespace autofill | 126 } // namespace autofill |
| 127 | 127 |
| 128 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_FULL_WALLET_H_ | 128 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_FULL_WALLET_H_ |
| OLD | NEW |