Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Side by Side Diff: components/autofill/core/common/password_form.h

Issue 103503002: Ignore autocomplete='off' for usernames and passwords. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // The name of the password input element, Optional (improves scoring). 118 // The name of the password input element, Optional (improves scoring).
119 // 119 //
120 // When parsing an HTML form, this must always be set. 120 // When parsing an HTML form, this must always be set.
121 string16 password_element; 121 string16 password_element;
122 122
123 // The password. Required. 123 // The password. Required.
124 // 124 //
125 // When parsing an HTML form, this is typically empty. 125 // When parsing an HTML form, this is typically empty.
126 string16 password_value; 126 string16 password_value;
127 127
128 // False if autocomplete is set to "off" for the password input element;
129 // True otherwise.
130 bool password_autocomplete_set;
131
132 // If the form was a change password form, the name of the 128 // If the form was a change password form, the name of the
133 // 'old password' input element. Optional. 129 // 'old password' input element. Optional.
134 string16 old_password_element; 130 string16 old_password_element;
135 131
136 // The old password. Optional. 132 // The old password. Optional.
137 string16 old_password_value; 133 string16 old_password_value;
138 134
139 // Whether or not this login was saved under an HTTPS session with a valid 135 // Whether or not this login was saved under an HTTPS session with a valid
140 // SSL cert. We will never match or autofill a PasswordForm where 136 // SSL cert. We will never match or autofill a PasswordForm where
141 // ssl_valid == true with a PasswordForm where ssl_valid == false. This means 137 // ssl_valid == true with a PasswordForm where ssl_valid == false. This means
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // Map username to PasswordForm* for convenience. See password_form_manager.h. 198 // Map username to PasswordForm* for convenience. See password_form_manager.h.
203 typedef std::map<string16, PasswordForm*> PasswordFormMap; 199 typedef std::map<string16, PasswordForm*> PasswordFormMap;
204 200
205 // For testing. 201 // For testing.
206 std::ostream& operator<<(std::ostream& os, 202 std::ostream& operator<<(std::ostream& os,
207 const autofill::PasswordForm& form); 203 const autofill::PasswordForm& form);
208 204
209 } // namespace autofill 205 } // namespace autofill
210 206
211 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ 207 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698