| 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 <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 base::string16 password_value; | 158 base::string16 password_value; |
| 159 | 159 |
| 160 // Whether the password value is the same as specified in the "value" | 160 // Whether the password value is the same as specified in the "value" |
| 161 // attribute of the input element. Only used in the renderer. | 161 // attribute of the input element. Only used in the renderer. |
| 162 bool password_value_is_default; | 162 bool password_value_is_default; |
| 163 | 163 |
| 164 // If the form was a sign-up or a change password form, the name of the input | 164 // If the form was a sign-up or a change password form, the name of the input |
| 165 // element corresponding to the new password. Optional, and not persisted. | 165 // element corresponding to the new password. Optional, and not persisted. |
| 166 base::string16 new_password_element; | 166 base::string16 new_password_element; |
| 167 | 167 |
| 168 // The confirmation password element. Optional, only set on form parsing, and |
| 169 // not persisted. |
| 170 base::string16 confirmation_password_element; |
| 171 |
| 168 // The new password. Optional, and not persisted. | 172 // The new password. Optional, and not persisted. |
| 169 base::string16 new_password_value; | 173 base::string16 new_password_value; |
| 170 | 174 |
| 171 // Whether the password value is the same as specified in the "value" | 175 // Whether the password value is the same as specified in the "value" |
| 172 // attribute of the input element. Only used in the renderer. | 176 // attribute of the input element. Only used in the renderer. |
| 173 bool new_password_value_is_default; | 177 bool new_password_value_is_default; |
| 174 | 178 |
| 175 // Whether the |new_password_element| has an autocomplete=new-password | 179 // Whether the |new_password_element| has an autocomplete=new-password |
| 176 // attribute. This is only used in parsed HTML forms. | 180 // attribute. This is only used in parsed HTML forms. |
| 177 bool new_password_marked_by_site; | 181 bool new_password_marked_by_site; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 }; | 302 }; |
| 299 | 303 |
| 300 // For testing. | 304 // For testing. |
| 301 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); | 305 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); |
| 302 std::ostream& operator<<(std::ostream& os, const PasswordForm& form); | 306 std::ostream& operator<<(std::ostream& os, const PasswordForm& form); |
| 303 std::ostream& operator<<(std::ostream& os, PasswordForm* form); | 307 std::ostream& operator<<(std::ostream& os, PasswordForm* form); |
| 304 | 308 |
| 305 } // namespace autofill | 309 } // namespace autofill |
| 306 | 310 |
| 307 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 311 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
| OLD | NEW |