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

Side by Side Diff: chrome/browser/autofill/address.h

Issue 11360055: [Autofill] Rename GetInfo and SetInfo to GetRawInfo and SetRawInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase harder Created 8 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/autofill/address.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_ADDRESS_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_ADDRESS_H_
6 #define CHROME_BROWSER_AUTOFILL_ADDRESS_H_ 6 #define CHROME_BROWSER_AUTOFILL_ADDRESS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "chrome/browser/autofill/autofill_type.h" 12 #include "chrome/browser/autofill/autofill_type.h"
13 #include "chrome/browser/autofill/field_types.h" 13 #include "chrome/browser/autofill/field_types.h"
14 #include "chrome/browser/autofill/form_group.h" 14 #include "chrome/browser/autofill/form_group.h"
15 15
16 // A form group that stores address information. 16 // A form group that stores address information.
17 class Address : public FormGroup { 17 class Address : public FormGroup {
18 public: 18 public:
19 Address(); 19 Address();
20 Address(const Address& address); 20 Address(const Address& address);
21 virtual ~Address(); 21 virtual ~Address();
22 22
23 Address& operator=(const Address& address); 23 Address& operator=(const Address& address);
24 24
25 // FormGroup: 25 // FormGroup:
26 virtual string16 GetInfo(AutofillFieldType type) const OVERRIDE; 26 virtual string16 GetRawInfo(AutofillFieldType type) const OVERRIDE;
27 virtual void SetInfo(AutofillFieldType type, const string16& value) OVERRIDE; 27 virtual void SetRawInfo(AutofillFieldType type,
28 const string16& value) OVERRIDE;
28 virtual void GetMatchingTypes(const string16& text, 29 virtual void GetMatchingTypes(const string16& text,
29 FieldTypeSet* matching_types) const OVERRIDE; 30 FieldTypeSet* matching_types) const OVERRIDE;
30 31
31 const std::string& country_code() const { return country_code_; } 32 const std::string& country_code() const { return country_code_; }
32 void set_country_code(const std::string& country_code) { 33 void set_country_code(const std::string& country_code) {
33 country_code_ = country_code; 34 country_code_ = country_code;
34 } 35 }
35 36
36 private: 37 private:
37 // FormGroup: 38 // FormGroup:
38 virtual void GetSupportedTypes(FieldTypeSet* supported_types) const OVERRIDE; 39 virtual void GetSupportedTypes(FieldTypeSet* supported_types) const OVERRIDE;
39 40
40 // Returns the localized country name corresponding to |country_code_|. 41 // Returns the localized country name corresponding to |country_code_|.
41 string16 Country() const; 42 string16 Country() const;
42 43
43 // The address. 44 // The address.
44 string16 line1_; 45 string16 line1_;
45 string16 line2_; 46 string16 line2_;
46 string16 city_; 47 string16 city_;
47 string16 state_; 48 string16 state_;
48 std::string country_code_; 49 std::string country_code_;
49 string16 zip_code_; 50 string16 zip_code_;
50 }; 51 };
51 52
52 #endif // CHROME_BROWSER_AUTOFILL_ADDRESS_H_ 53 #endif // CHROME_BROWSER_AUTOFILL_ADDRESS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/address.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698