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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 137 const std::vector<ServerFieldType>* suggested_fields, | 137 const std::vector<ServerFieldType>* suggested_fields, |
| 138 ServerFieldType excluded_field, | 138 ServerFieldType excluded_field, |
| 139 size_t minimal_fields_shown, | 139 size_t minimal_fields_shown, |
| 140 std::vector<base::string16>* labels); | 140 std::vector<base::string16>* labels); |
| 141 | 141 |
| 142 const std::string& language_code() const { return language_code_; } | 142 const std::string& language_code() const { return language_code_; } |
| 143 void set_language_code(const std::string& language_code) { | 143 void set_language_code(const std::string& language_code) { |
| 144 language_code_ = language_code; | 144 language_code_ = language_code; |
| 145 } | 145 } |
| 146 | 146 |
| 147 // Overwrites or appends names from autofillable profile |names| to the | |
| 148 // existing list of autofill profile names maintained under |name_|, so as | |
| 149 // to keep ones with more information for identical profile full names | |
| 150 // otherwise append to this list. | |
| 151 void OverwriteOrAppendNames(const std::vector<NameInfo>& names); | |
|
Ilya Sherman
2014/05/31 00:34:41
This should remain private, as it is an implementa
Pritam Nikam
2014/05/31 10:30:41
Done.
| |
| 152 | |
| 147 private: | 153 private: |
| 148 typedef std::vector<const FormGroup*> FormGroupList; | 154 typedef std::vector<const FormGroup*> FormGroupList; |
| 149 | 155 |
| 150 // FormGroup: | 156 // FormGroup: |
| 151 virtual void GetSupportedTypes( | 157 virtual void GetSupportedTypes( |
| 152 ServerFieldTypeSet* supported_types) const OVERRIDE; | 158 ServerFieldTypeSet* supported_types) const OVERRIDE; |
| 153 | 159 |
| 154 // Shared implementation for GetRawMultiInfo() and GetMultiInfo(). Pass an | 160 // Shared implementation for GetRawMultiInfo() and GetMultiInfo(). Pass an |
| 155 // empty |app_locale| to get the raw info; otherwise, the returned info is | 161 // empty |app_locale| to get the raw info; otherwise, the returned info is |
| 156 // canonicalized according to the given |app_locale|, if appropriate. | 162 // canonicalized according to the given |app_locale|, if appropriate. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 |