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 CHROME_BROWSER_AUTOFILL_WALLET_WALLET_ADDRESS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_ |
6 #define CHROME_BROWSER_AUTOFILL_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 "chrome/browser/autofill/field_types.h" | 13 #include "components/autofill/browser/field_types.h" |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 class DictionaryValue; | 16 class DictionaryValue; |
17 } | 17 } |
18 | 18 |
19 namespace autofill { | 19 namespace autofill { |
20 namespace wallet { | 20 namespace wallet { |
21 | 21 |
22 // TODO(ahutter): This address is a lot like chrome/browser/autofill/address.h. | 22 // TODO(ahutter): This address is a lot like |
23 // There should be a super class that both extend from to clean up duplicated | 23 // components/autofill/browser/address.h. There should be a super |
24 // code. See http://crbug.com/164463. | 24 // class that both extend from to clean up duplicated code. See |
| 25 // http://crbug.com/164463. |
25 | 26 |
26 // Address contains various address fields that have been populated from the | 27 // Address contains various address fields that have been populated from the |
27 // user's Online Wallet. It is loosely modeled as a subet of the OASIS | 28 // user's Online Wallet. It is loosely modeled as a subet of the OASIS |
28 // "extensible Address Language" (xAL); see | 29 // "extensible Address Language" (xAL); see |
29 // http://www.oasis-open.org/committees/ciq/download.shtml. | 30 // http://www.oasis-open.org/committees/ciq/download.shtml. |
30 class Address { | 31 class Address { |
31 public: | 32 public: |
32 Address(); | 33 Address(); |
33 // TODO(ahutter): Use additional fields (descriptive_name, is_post_box, | 34 // TODO(ahutter): Use additional fields (descriptive_name, is_post_box, |
34 // is_minimal_address, is_valid, is_default) when SaveToWallet is implemented. | 35 // is_minimal_address, is_valid, is_default) when SaveToWallet is implemented. |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 157 |
157 // Externalized Online Wallet id for this address. | 158 // Externalized Online Wallet id for this address. |
158 std::string object_id_; | 159 std::string object_id_; |
159 | 160 |
160 DISALLOW_ASSIGN(Address); | 161 DISALLOW_ASSIGN(Address); |
161 }; | 162 }; |
162 | 163 |
163 } // namespace wallet | 164 } // namespace wallet |
164 } // namespace autofill | 165 } // namespace autofill |
165 | 166 |
166 #endif // CHROME_BROWSER_AUTOFILL_WALLET_WALLET_ADDRESS_H_ | 167 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_ADDRESS_H_ |
OLD | NEW |