| 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_ADDRESS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "components/autofill/browser/field_types.h" | 13 #include "components/autofill/browser/field_types.h" |
| 14 #include "components/autofill/common/autofill_export.h" |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 class DictionaryValue; | 17 class DictionaryValue; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace autofill { | 20 namespace autofill { |
| 20 | 21 |
| 21 class AutofillProfile; | 22 class AutofillProfile; |
| 22 | 23 |
| 23 namespace wallet { | 24 namespace wallet { |
| 24 | 25 |
| 25 // TODO(ahutter): This address is a lot like | 26 // TODO(ahutter): This address is a lot like |
| 26 // components/autofill/browser/address.h. There should be a super | 27 // components/autofill/browser/address.h. There should be a super |
| 27 // class that both extend from to clean up duplicated code. See | 28 // class that both extend from to clean up duplicated code. See |
| 28 // http://crbug.com/164463. | 29 // http://crbug.com/164463. |
| 29 | 30 |
| 30 // Address contains various address fields that have been populated from the | 31 // Address contains various address fields that have been populated from the |
| 31 // user's Online Wallet. It is loosely modeled as a subet of the OASIS | 32 // user's Online Wallet. It is loosely modeled as a subet of the OASIS |
| 32 // "extensible Address Language" (xAL); see | 33 // "extensible Address Language" (xAL); see |
| 33 // http://www.oasis-open.org/committees/ciq/download.shtml. | 34 // http://www.oasis-open.org/committees/ciq/download.shtml. |
| 34 class Address { | 35 class AUTOFILL_EXPORT Address { |
| 35 public: | 36 public: |
| 36 // TODO(ahutter): Use additional fields (descriptive_name, is_post_box, | 37 // TODO(ahutter): Use additional fields (descriptive_name, is_post_box, |
| 37 // is_minimal_address, is_valid, is_default) when SaveToWallet is implemented. | 38 // is_minimal_address, is_valid, is_default) when SaveToWallet is implemented. |
| 38 // See http://crbug.com/164284. | 39 // See http://crbug.com/164284. |
| 39 | 40 |
| 40 Address(); | 41 Address(); |
| 41 | 42 |
| 42 // Using the raw info in |profile|, create a wallet::Address. | 43 // Using the raw info in |profile|, create a wallet::Address. |
| 43 explicit Address(const AutofillProfile& profile); | 44 explicit Address(const AutofillProfile& profile); |
| 44 | 45 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 std::string object_id_; | 177 std::string object_id_; |
| 177 | 178 |
| 178 // This class is intentionally copyable. | 179 // This class is intentionally copyable. |
| 179 DISALLOW_ASSIGN(Address); | 180 DISALLOW_ASSIGN(Address); |
| 180 }; | 181 }; |
| 181 | 182 |
| 182 } // namespace wallet | 183 } // namespace wallet |
| 183 } // namespace autofill | 184 } // namespace autofill |
| 184 | 185 |
| 185 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_ | 186 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_ |
| OLD | NEW |