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_COMMON_PASSWORD_FORM_H__ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // form or a change password form that does not ask for the current password. | 157 // form or a change password form that does not ask for the current password. |
158 // In these two cases the |new_password_element| will always be set. | 158 // In these two cases the |new_password_element| will always be set. |
159 base::string16 password_element; | 159 base::string16 password_element; |
160 | 160 |
161 // The current password. Must be non-empty for PasswordForm instances that are | 161 // The current password. Must be non-empty for PasswordForm instances that are |
162 // meant to be persisted to the password store. | 162 // meant to be persisted to the password store. |
163 // | 163 // |
164 // When parsing an HTML form, this is typically empty. | 164 // When parsing an HTML form, this is typically empty. |
165 base::string16 password_value; | 165 base::string16 password_value; |
166 | 166 |
167 // False if autocomplete is set to "off" for the password input element; | |
168 // True otherwise. | |
169 bool password_autocomplete_set; | |
170 | |
171 // If the form was a sign-up or a change password form, the name of the input | 167 // If the form was a sign-up or a change password form, the name of the input |
172 // element corresponding to the new password. Optional, and not persisted. | 168 // element corresponding to the new password. Optional, and not persisted. |
173 base::string16 new_password_element; | 169 base::string16 new_password_element; |
174 | 170 |
175 // The new password. Optional, and not persisted. | 171 // The new password. Optional, and not persisted. |
176 base::string16 new_password_value; | 172 base::string16 new_password_value; |
177 | 173 |
178 // Whether the |new_password_element| has an autocomplete=new-password | 174 // Whether the |new_password_element| has an autocomplete=new-password |
179 // attribute. This is only used in parsed HTML forms. | 175 // attribute. This is only used in parsed HTML forms. |
180 bool new_password_marked_by_site; | 176 bool new_password_marked_by_site; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; | 281 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; |
286 | 282 |
287 // For testing. | 283 // For testing. |
288 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); | 284 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); |
289 std::ostream& operator<<(std::ostream& os, const autofill::PasswordForm& form); | 285 std::ostream& operator<<(std::ostream& os, const autofill::PasswordForm& form); |
290 std::ostream& operator<<(std::ostream& os, autofill::PasswordForm* form); | 286 std::ostream& operator<<(std::ostream& os, autofill::PasswordForm* form); |
291 | 287 |
292 } // namespace autofill | 288 } // namespace autofill |
293 | 289 |
294 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 290 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
OLD | NEW |