Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1190)

Side by Side Diff: components/autofill/content/browser/wallet/wallet_address.h

Issue 25092011: rAc: update android test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CONTENT_BROWSER_WALLET_WALLET_ADDRESS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ADDRESS_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ADDRESS_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_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/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "components/autofill/core/browser/phone_number_i18n.h"
13 14
14 namespace base { 15 namespace base {
15 class DictionaryValue; 16 class DictionaryValue;
16 } 17 }
17 18
18 namespace autofill { 19 namespace autofill {
19 20
20 class AutofillProfile; 21 class AutofillProfile;
21 class AutofillType; 22 class AutofillType;
22 23
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 scoped_ptr<base::DictionaryValue> ToDictionaryWithoutID() const; 84 scoped_ptr<base::DictionaryValue> ToDictionaryWithoutID() const;
84 85
85 // Returns a string that summarizes this address, suitable for display to 86 // Returns a string that summarizes this address, suitable for display to
86 // the user. 87 // the user.
87 base::string16 DisplayName() const; 88 base::string16 DisplayName() const;
88 89
89 // Returns a string that could be used as a sub-label, suitable for display 90 // Returns a string that could be used as a sub-label, suitable for display
90 // to the user together with DisplayName(). 91 // to the user together with DisplayName().
91 base::string16 DisplayNameDetail() const; 92 base::string16 DisplayNameDetail() const;
92 93
94 // Returns the phone number as a string that is suitable for display to the
95 // user.
96 base::string16 DisplayPhoneNumber() const;
97
93 // Returns data appropriate for |type|. 98 // Returns data appropriate for |type|.
94 base::string16 GetInfo(const AutofillType& type, 99 base::string16 GetInfo(const AutofillType& type,
95 const std::string& app_locale) const; 100 const std::string& app_locale) const;
96 101
97 const std::string& country_name_code() const { return country_name_code_; } 102 const std::string& country_name_code() const { return country_name_code_; }
98 const base::string16& recipient_name() const { return recipient_name_; } 103 const base::string16& recipient_name() const { return recipient_name_; }
99 const base::string16& address_line_1() const { return address_line_1_; } 104 const base::string16& address_line_1() const { return address_line_1_; }
100 const base::string16& address_line_2() const { return address_line_2_; } 105 const base::string16& address_line_2() const { return address_line_2_; }
101 const base::string16& locality_name() const { return locality_name_; } 106 const base::string16& locality_name() const { return locality_name_; }
102 const base::string16& administrative_area_name() const { 107 const base::string16& administrative_area_name() const {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 183
179 // Despite the name, |postal_code_number_| values are frequently alphanumeric. 184 // Despite the name, |postal_code_number_| values are frequently alphanumeric.
180 // Examples: "94043", "SW1W", "SW1W 9TQ". 185 // Examples: "94043", "SW1W", "SW1W 9TQ".
181 base::string16 postal_code_number_; 186 base::string16 postal_code_number_;
182 187
183 // A valid international phone number. If |phone_number_| is a user provided 188 // A valid international phone number. If |phone_number_| is a user provided
184 // value, it should have been validated using libphonenumber by clients of 189 // value, it should have been validated using libphonenumber by clients of
185 // this class before being set; see http://code.google.com/p/libphonenumber/. 190 // this class before being set; see http://code.google.com/p/libphonenumber/.
186 base::string16 phone_number_; 191 base::string16 phone_number_;
187 192
193 // The parsed phone number.
194 i18n::PhoneObject phone_object_;
195
188 // Externalized Online Wallet id for this address. 196 // Externalized Online Wallet id for this address.
189 std::string object_id_; 197 std::string object_id_;
190 198
191 // Server's understanding of this address as complete address or not. 199 // Server's understanding of this address as complete address or not.
192 bool is_complete_address_; 200 bool is_complete_address_;
193 201
194 // This class is intentionally copyable. 202 // This class is intentionally copyable.
195 DISALLOW_ASSIGN(Address); 203 DISALLOW_ASSIGN(Address);
196 }; 204 };
197 205
198 } // namespace wallet 206 } // namespace wallet
199 } // namespace autofill 207 } // namespace autofill
200 208
201 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ADDRESS_H_ 209 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_ADDRESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698