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

Side by Side Diff: components/autofill/core/browser/address.h

Issue 22009003: [Autofill] Distinguish between native field types and potentially HTML field types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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_CORE_BROWSER_ADDRESS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "components/autofill/core/browser/autofill_type.h"
14 #include "components/autofill/core/browser/field_types.h"
15 #include "components/autofill/core/browser/form_group.h" 13 #include "components/autofill/core/browser/form_group.h"
16 14
17 namespace autofill { 15 namespace autofill {
18 16
19 // A form group that stores address information. 17 // A form group that stores address information.
20 class Address : public FormGroup { 18 class Address : public FormGroup {
21 public: 19 public:
22 Address(); 20 Address();
23 Address(const Address& address); 21 Address(const Address& address);
24 virtual ~Address(); 22 virtual ~Address();
25 23
26 Address& operator=(const Address& address); 24 Address& operator=(const Address& address);
27 25
28 // FormGroup: 26 // FormGroup:
29 virtual base::string16 GetRawInfo(AutofillFieldType type) const OVERRIDE; 27 virtual base::string16 GetRawInfo(ServerFieldType type) const OVERRIDE;
30 virtual void SetRawInfo(AutofillFieldType type, 28 virtual void SetRawInfo(ServerFieldType type,
31 const base::string16& value) OVERRIDE; 29 const base::string16& value) OVERRIDE;
32 virtual base::string16 GetInfo(AutofillFieldType type, 30 virtual base::string16 GetInfo(const AutofillType& type,
33 const std::string& app_locale) const OVERRIDE; 31 const std::string& app_locale) const OVERRIDE;
34 virtual bool SetInfo(AutofillFieldType type, 32 virtual bool SetInfo(const AutofillType& type,
35 const base::string16& value, 33 const base::string16& value,
36 const std::string& app_locale) OVERRIDE; 34 const std::string& app_locale) OVERRIDE;
37 virtual void GetMatchingTypes(const base::string16& text, 35 virtual void GetMatchingTypes(
38 const std::string& app_locale, 36 const base::string16& text,
39 FieldTypeSet* matching_types) const OVERRIDE; 37 const std::string& app_locale,
38 ServerFieldTypeSet* matching_types) const OVERRIDE;
40 39
41 private: 40 private:
42 // FormGroup: 41 // FormGroup:
43 virtual void GetSupportedTypes(FieldTypeSet* supported_types) const OVERRIDE; 42 virtual void GetSupportedTypes(
43 ServerFieldTypeSet* supported_types) const OVERRIDE;
44 44
45 // The address. 45 // The address.
46 base::string16 line1_; 46 base::string16 line1_;
47 base::string16 line2_; 47 base::string16 line2_;
48 base::string16 city_; 48 base::string16 city_;
49 base::string16 state_; 49 base::string16 state_;
50 base::string16 country_code_; 50 base::string16 country_code_;
51 base::string16 zip_code_; 51 base::string16 zip_code_;
52 }; 52 };
53 53
54 } // namespace autofill 54 } // namespace autofill
55 55
56 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_H_ 56 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_H_
OLDNEW
« no previous file with comments | « components/autofill/content/browser/wallet/wallet_items.cc ('k') | components/autofill/core/browser/address.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698