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

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

Issue 1143253012: More work on removing variants from Autofill (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: work around iOS lameness Created 5 years, 6 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
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_CONTACT_INFO_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "components/autofill/core/browser/form_group.h" 13 #include "components/autofill/core/browser/form_group.h"
14 14
15 namespace autofill { 15 namespace autofill {
16 16
17 // A form group that stores name information. 17 // A form group that stores name information.
18 class NameInfo : public FormGroup { 18 class NameInfo : public FormGroup {
19 public: 19 public:
20 NameInfo(); 20 NameInfo();
21 NameInfo(const NameInfo& info); 21 NameInfo(const NameInfo& info);
22 ~NameInfo() override; 22 ~NameInfo() override;
23 23
24 NameInfo& operator=(const NameInfo& info); 24 NameInfo& operator=(const NameInfo& info);
25 25
26 // Compares |NameInfo| objects for |given_|, |middle_| and |family_| names, 26 // Compares |NameInfo| objects for |given_|, |middle_| and |family_| names,
27 // ignoring their case differences. 27 // ignoring their case differences.
28 bool ParsedNamesAreEqual(const NameInfo& info); 28 bool ParsedNamesAreEqual(const NameInfo& info) const;
29 29
30 // FormGroup: 30 // FormGroup:
31 base::string16 GetRawInfo(ServerFieldType type) const override; 31 base::string16 GetRawInfo(ServerFieldType type) const override;
32 void SetRawInfo(ServerFieldType type, const base::string16& value) override; 32 void SetRawInfo(ServerFieldType type, const base::string16& value) override;
33 base::string16 GetInfo(const AutofillType& type, 33 base::string16 GetInfo(const AutofillType& type,
34 const std::string& app_locale) const override; 34 const std::string& app_locale) const override;
35 bool SetInfo(const AutofillType& type, 35 bool SetInfo(const AutofillType& type,
36 const base::string16& value, 36 const base::string16& value,
37 const std::string& app_locale) override; 37 const std::string& app_locale) override;
38 38
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 private: 91 private:
92 // FormGroup: 92 // FormGroup:
93 void GetSupportedTypes(ServerFieldTypeSet* supported_types) const override; 93 void GetSupportedTypes(ServerFieldTypeSet* supported_types) const override;
94 94
95 base::string16 company_name_; 95 base::string16 company_name_;
96 }; 96 };
97 97
98 } // namespace autofill 98 } // namespace autofill
99 99
100 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_ 100 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_profile_unittest.cc ('k') | components/autofill/core/browser/contact_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698