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

Side by Side Diff: content/public/common/password_form.h

Issue 14811010: Add metadata to content::PasswordForm to keep track of the password usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
OLDNEW
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 #include <vector> 10 #include <vector>
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Enum to differentiate between manually filled forms and forms with auto 150 // Enum to differentiate between manually filled forms and forms with auto
151 // generated passwords. 151 // generated passwords.
152 enum Type { 152 enum Type {
153 TYPE_MANUAL, 153 TYPE_MANUAL,
154 TYPE_GENERATED, 154 TYPE_GENERATED,
155 }; 155 };
156 156
157 // The form type. Not used yet. Please see http://crbug.com/152422 157 // The form type. Not used yet. Please see http://crbug.com/152422
158 Type type; 158 Type type;
159 159
160 // The number of times that this username/password has been used to
161 // authenticate the user.
162 //
163 // When parsing an HTML form, this is not used.
164 int times_used;
Ilya Sherman 2013/05/14 07:25:34 nit: size_t?
Garrett Casto 2013/05/14 20:17:58 I'd prefer not. There is some ambiguity in the chr
165
160 PasswordForm(); 166 PasswordForm();
161 ~PasswordForm(); 167 ~PasswordForm();
162 }; 168 };
163 169
164 // Map username to PasswordForm* for convenience. See password_form_manager.h. 170 // Map username to PasswordForm* for convenience. See password_form_manager.h.
165 typedef std::map<string16, PasswordForm*> PasswordFormMap; 171 typedef std::map<string16, PasswordForm*> PasswordFormMap;
166 172
167 } // namespace content 173 } // namespace content
168 174
169 #endif // CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__ 175 #endif // CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698