Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__ | 5 #ifndef CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__ |
| 6 #define CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__ | 6 #define CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 // The name of the password input element, Optional (improves scoring). | 92 // The name of the password input element, Optional (improves scoring). |
| 93 // | 93 // |
| 94 // When parsing an HTML form, this must always be set. | 94 // When parsing an HTML form, this must always be set. |
| 95 string16 password_element; | 95 string16 password_element; |
| 96 | 96 |
| 97 // The password. Required. | 97 // The password. Required. |
| 98 // | 98 // |
| 99 // When parsing an HTML form, this is typically empty. | 99 // When parsing an HTML form, this is typically empty. |
| 100 string16 password_value; | 100 string16 password_value; |
| 101 | 101 |
| 102 // Whether we should autofill the password based on the autocomplete property | |
| 103 // in the password form. | |
| 104 bool password_should_autocomplete; | |
|
tim (not reviewing)
2012/12/11 01:23:04
This makes it sound more authoritative than it is
zysxqn
2012/12/11 01:52:32
I can get your point: whether we should autocomple
| |
| 105 | |
| 102 // If the form was a change password form, the name of the | 106 // If the form was a change password form, the name of the |
| 103 // 'old password' input element. Optional. | 107 // 'old password' input element. Optional. |
| 104 string16 old_password_element; | 108 string16 old_password_element; |
| 105 | 109 |
| 106 // The old password. Optional. | 110 // The old password. Optional. |
| 107 string16 old_password_value; | 111 string16 old_password_value; |
| 108 | 112 |
| 109 // Whether or not this login was saved under an HTTPS session with a valid | 113 // Whether or not this login was saved under an HTTPS session with a valid |
| 110 // SSL cert. We will never match or autofill a PasswordForm where | 114 // SSL cert. We will never match or autofill a PasswordForm where |
| 111 // ssl_valid == true with a PasswordForm where ssl_valid == false. This means | 115 // ssl_valid == true with a PasswordForm where ssl_valid == false. This means |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 148 PasswordForm(); | 152 PasswordForm(); |
| 149 ~PasswordForm(); | 153 ~PasswordForm(); |
| 150 }; | 154 }; |
| 151 | 155 |
| 152 // Map username to PasswordForm* for convenience. See password_form_manager.h. | 156 // Map username to PasswordForm* for convenience. See password_form_manager.h. |
| 153 typedef std::map<string16, PasswordForm*> PasswordFormMap; | 157 typedef std::map<string16, PasswordForm*> PasswordFormMap; |
| 154 | 158 |
| 155 } // namespace content | 159 } // namespace content |
| 156 | 160 |
| 157 #endif // CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__ | 161 #endif // CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__ |
| OLD | NEW |