Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_AUTOFILL_PROFILE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <iosfwd> | 10 #include <iosfwd> |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 184 const std::vector<ServerFieldType>& fields, | 184 const std::vector<ServerFieldType>& fields, |
| 185 size_t num_fields_to_include, | 185 size_t num_fields_to_include, |
| 186 std::vector<base::string16>* labels); | 186 std::vector<base::string16>* labels); |
| 187 | 187 |
| 188 // Utilities for listing and lookup of the data members that constitute | 188 // Utilities for listing and lookup of the data members that constitute |
| 189 // user-visible profile information. | 189 // user-visible profile information. |
| 190 FormGroupList FormGroups() const; | 190 FormGroupList FormGroups() const; |
| 191 const FormGroup* FormGroupForType(const AutofillType& type) const; | 191 const FormGroup* FormGroupForType(const AutofillType& type) const; |
| 192 FormGroup* MutableFormGroupForType(const AutofillType& type); | 192 FormGroup* MutableFormGroupForType(const AutofillType& type); |
| 193 | 193 |
| 194 // Overwrites or appends names from autofillable profile |names| to the | |
| 195 // existing list of autofill profile names maintained under |name_|, so as | |
| 196 // to keep ones with more information for identical profile full names | |
| 197 // otherwise append to this list. | |
|
Ilya Sherman
2014/06/03 00:25:32
nit: Suggested rephrasing. Of course, feel free t
Pritam Nikam
2014/06/03 15:37:34
Done.
| |
| 198 void OverwriteOrAppendNames(const std::vector<NameInfo>& names); | |
| 199 | |
| 194 // Personal information for this profile. | 200 // Personal information for this profile. |
| 195 std::vector<NameInfo> name_; | 201 std::vector<NameInfo> name_; |
| 196 std::vector<EmailInfo> email_; | 202 std::vector<EmailInfo> email_; |
| 197 CompanyInfo company_; | 203 CompanyInfo company_; |
| 198 std::vector<PhoneNumber> phone_number_; | 204 std::vector<PhoneNumber> phone_number_; |
| 199 Address address_; | 205 Address address_; |
| 200 | 206 |
| 201 // The BCP 47 language code that can be used to format |address_| for display. | 207 // The BCP 47 language code that can be used to format |address_| for display. |
| 202 std::string language_code_; | 208 std::string language_code_; |
| 203 }; | 209 }; |
| 204 | 210 |
| 205 // So we can compare AutofillProfiles with EXPECT_EQ(). | 211 // So we can compare AutofillProfiles with EXPECT_EQ(). |
| 206 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); | 212 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); |
| 207 | 213 |
| 208 } // namespace autofill | 214 } // namespace autofill |
| 209 | 215 |
| 210 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ | 216 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ |
| OLD | NEW |