| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // is not reconstructible via a heuristic parse of the full name string). | 233 // is not reconstructible via a heuristic parse of the full name string). |
| 234 void OverwriteName(const NameInfo& name, const std::string& app_locale); | 234 void OverwriteName(const NameInfo& name, const std::string& app_locale); |
| 235 | 235 |
| 236 // Same as operator==, but ignores differences in GUID. | 236 // Same as operator==, but ignores differences in GUID. |
| 237 bool EqualsSansGuid(const AutofillProfile& profile) const; | 237 bool EqualsSansGuid(const AutofillProfile& profile) const; |
| 238 | 238 |
| 239 RecordType record_type_; | 239 RecordType record_type_; |
| 240 | 240 |
| 241 // Personal information for this profile. | 241 // Personal information for this profile. |
| 242 NameInfo name_; | 242 NameInfo name_; |
| 243 std::vector<EmailInfo> email_; | 243 EmailInfo email_; |
| 244 CompanyInfo company_; | 244 CompanyInfo company_; |
| 245 std::vector<PhoneNumber> phone_number_; | 245 PhoneNumber phone_number_; |
| 246 Address address_; | 246 Address address_; |
| 247 | 247 |
| 248 // The BCP 47 language code that can be used to format |address_| for display. | 248 // The BCP 47 language code that can be used to format |address_| for display. |
| 249 std::string language_code_; | 249 std::string language_code_; |
| 250 | 250 |
| 251 // ID used for identifying this profile. Only set for SERVER_PROFILEs. This is | 251 // ID used for identifying this profile. Only set for SERVER_PROFILEs. This is |
| 252 // a hash of the contents. | 252 // a hash of the contents. |
| 253 std::string server_id_; | 253 std::string server_id_; |
| 254 }; | 254 }; |
| 255 | 255 |
| 256 // So we can compare AutofillProfiles with EXPECT_EQ(). | 256 // So we can compare AutofillProfiles with EXPECT_EQ(). |
| 257 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); | 257 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile); |
| 258 | 258 |
| 259 } // namespace autofill | 259 } // namespace autofill |
| 260 | 260 |
| 261 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ | 261 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROFILE_H_ |
| OLD | NEW |