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

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

Issue 139253004: Add the database field to require additional auth for autofilling passwords. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment to IPC message about excluded field. Created 6 years, 10 months 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 // The form type. Not used yet. Please see http://crbug.com/152422 176 // The form type. Not used yet. Please see http://crbug.com/152422
177 Type type; 177 Type type;
178 178
179 // The number of times that this username/password has been used to 179 // The number of times that this username/password has been used to
180 // authenticate the user. 180 // authenticate the user.
181 // 181 //
182 // When parsing an HTML form, this is not used. 182 // When parsing an HTML form, this is not used.
183 int times_used; 183 int times_used;
184 184
185 // True if additional system level authentication should be used
186 // (if available) before using this password for autofill.
187 //
188 // Default to false.
189 bool use_additional_authentication;
190
185 // Autofill representation of this form. Used to communicate with the 191 // Autofill representation of this form. Used to communicate with the
186 // Autofill servers if necessary. Currently this is only used to help 192 // Autofill servers if necessary. Currently this is only used to help
187 // determine forms where we can trigger password generation. 193 // determine forms where we can trigger password generation.
188 // 194 //
189 // When parsing an HTML form, this is normally set. 195 // When parsing an HTML form, this is normally set.
190 FormData form_data; 196 FormData form_data;
191 197
192 // Returns true if this match was found using public suffix matching. 198 // Returns true if this match was found using public suffix matching.
193 bool IsPublicSuffixMatch() const; 199 bool IsPublicSuffixMatch() const;
194 200
195 // Equality operators for testing. 201 // Equality operators for testing.
196 bool operator==(const PasswordForm& form) const; 202 bool operator==(const PasswordForm& form) const;
197 bool operator!=(const PasswordForm& form) const; 203 bool operator!=(const PasswordForm& form) const;
198 204
199 PasswordForm(); 205 PasswordForm();
200 ~PasswordForm(); 206 ~PasswordForm();
201 }; 207 };
202 208
203 // Map username to PasswordForm* for convenience. See password_form_manager.h. 209 // Map username to PasswordForm* for convenience. See password_form_manager.h.
204 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; 210 typedef std::map<base::string16, PasswordForm*> PasswordFormMap;
205 211
206 // For testing. 212 // For testing.
207 std::ostream& operator<<(std::ostream& os, 213 std::ostream& operator<<(std::ostream& os,
208 const autofill::PasswordForm& form); 214 const autofill::PasswordForm& form);
209 215
210 } // namespace autofill 216 } // namespace autofill
211 217
212 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ 218 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698