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_FIELD_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_FIELD_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_FIELD_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_FIELD_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 void set_generation_type( | 90 void set_generation_type( |
91 AutofillUploadContents::Field::PasswordGenerationType type) { | 91 AutofillUploadContents::Field::PasswordGenerationType type) { |
92 generation_type_ = type; | 92 generation_type_ = type; |
93 } | 93 } |
94 AutofillUploadContents::Field::PasswordGenerationType generation_type() | 94 AutofillUploadContents::Field::PasswordGenerationType generation_type() |
95 const { | 95 const { |
96 return generation_type_; | 96 return generation_type_; |
97 } | 97 } |
98 | 98 |
| 99 void set_generated_password_changed(bool generated_password_changed) { |
| 100 generated_password_changed_ = generated_password_changed; |
| 101 } |
| 102 bool generated_password_changed() const { |
| 103 return generated_password_changed_; |
| 104 } |
| 105 |
99 void set_form_classifier_outcome( | 106 void set_form_classifier_outcome( |
100 AutofillUploadContents::Field::FormClassifierOutcome outcome) { | 107 AutofillUploadContents::Field::FormClassifierOutcome outcome) { |
101 form_classifier_outcome_ = outcome; | 108 form_classifier_outcome_ = outcome; |
102 } | 109 } |
103 AutofillUploadContents::Field::FormClassifierOutcome form_classifier_outcome() | 110 AutofillUploadContents::Field::FormClassifierOutcome form_classifier_outcome() |
104 const { | 111 const { |
105 return form_classifier_outcome_; | 112 return form_classifier_outcome_; |
106 } | 113 } |
107 | 114 |
108 // Set |field_data|'s value to |value|. Uses |field|, |address_language_code|, | 115 // Set |field_data|'s value to |value|. Uses |field|, |address_language_code|, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 bool previously_autofilled_; | 176 bool previously_autofilled_; |
170 | 177 |
171 // The parseable name attribute, with unnecessary information removed (such as | 178 // The parseable name attribute, with unnecessary information removed (such as |
172 // a common prefix shared with other fields). Will be used for heuristics | 179 // a common prefix shared with other fields). Will be used for heuristics |
173 // parsing. | 180 // parsing. |
174 base::string16 parseable_name_; | 181 base::string16 parseable_name_; |
175 | 182 |
176 // The type of password generation event, if it happened. | 183 // The type of password generation event, if it happened. |
177 AutofillUploadContents::Field::PasswordGenerationType generation_type_; | 184 AutofillUploadContents::Field::PasswordGenerationType generation_type_; |
178 | 185 |
| 186 // Whether the generated password was changed by user. |
| 187 bool generated_password_changed_; |
| 188 |
179 // The outcome of HTML parsing based form classifier. | 189 // The outcome of HTML parsing based form classifier. |
180 AutofillUploadContents::Field::FormClassifierOutcome form_classifier_outcome_; | 190 AutofillUploadContents::Field::FormClassifierOutcome form_classifier_outcome_; |
181 | 191 |
182 DISALLOW_COPY_AND_ASSIGN(AutofillField); | 192 DISALLOW_COPY_AND_ASSIGN(AutofillField); |
183 }; | 193 }; |
184 | 194 |
185 } // namespace autofill | 195 } // namespace autofill |
186 | 196 |
187 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_FIELD_H_ | 197 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_FIELD_H_ |
OLD | NEW |