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

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

Issue 261993006: Modified to allow to preserve two-word string in first-name and last-name in autofill profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added case-insensativity handling for autofill nameinfo and unit-tests. Created 6 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 virtual ~NameInfo(); 22 virtual ~NameInfo();
23 23
24 NameInfo& operator=(const NameInfo& info); 24 NameInfo& operator=(const NameInfo& info);
25 bool operator==(const NameInfo& info);
26 bool operator!=(const NameInfo& info);
25 27
26 // FormGroup: 28 // FormGroup:
27 virtual base::string16 GetRawInfo(ServerFieldType type) const OVERRIDE; 29 virtual base::string16 GetRawInfo(ServerFieldType type) const OVERRIDE;
28 virtual void SetRawInfo(ServerFieldType type, 30 virtual void SetRawInfo(ServerFieldType type,
29 const base::string16& value) OVERRIDE; 31 const base::string16& value) OVERRIDE;
30 32
31 private: 33 private:
32 // FormGroup: 34 // FormGroup:
33 virtual void GetSupportedTypes( 35 virtual void GetSupportedTypes(
34 ServerFieldTypeSet* supported_types) const OVERRIDE; 36 ServerFieldTypeSet* supported_types) const OVERRIDE;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // FormGroup: 94 // FormGroup:
93 virtual void GetSupportedTypes( 95 virtual void GetSupportedTypes(
94 ServerFieldTypeSet* supported_types) const OVERRIDE; 96 ServerFieldTypeSet* supported_types) const OVERRIDE;
95 97
96 base::string16 company_name_; 98 base::string16 company_name_;
97 }; 99 };
98 100
99 } // namespace autofill 101 } // namespace autofill
100 102
101 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_ 103 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CONTACT_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698