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

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

Issue 920683002: [Password Generation] Add negative votes for crowdsourcing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 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
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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // When parsing an HTML form, this is not used. 198 // When parsing an HTML form, this is not used.
199 int times_used; 199 int times_used;
200 200
201 // Autofill representation of this form. Used to communicate with the 201 // Autofill representation of this form. Used to communicate with the
202 // Autofill servers if necessary. Currently this is only used to help 202 // Autofill servers if necessary. Currently this is only used to help
203 // determine forms where we can trigger password generation. 203 // determine forms where we can trigger password generation.
204 // 204 //
205 // When parsing an HTML form, this is normally set. 205 // When parsing an HTML form, this is normally set.
206 FormData form_data; 206 FormData form_data;
207 207
208 enum GenerationUploadStatus {
vabr (Chromium) 2015/02/12 10:08:25 I explicitly acknowledge the choice of enum over "
vabr (Chromium) 2015/02/12 10:08:25 Declaration order: types should be before member v
Garrett Casto 2015/02/12 22:15:35 Yeah, didn't explicitly mention this, but there do
Garrett Casto 2015/02/12 22:15:35 Done.
209 NO_SIGNAL_SENT,
210 POSITIVE_SIGNAL_SENT,
211 NEGATIVE_SIGNAL_SENT,
212 // Reserve a few values for future use.
213 UNKNOWN_STATUS = 10
214 };
215
216 // What information has been sent to the Autofill server about this form.
217 GenerationUploadStatus generation_upload_status;
218
208 // These following fields are set by a website using the Credential Manager 219 // These following fields are set by a website using the Credential Manager
209 // API. They will be empty and remain unused for sites which do not use that 220 // API. They will be empty and remain unused for sites which do not use that
210 // API. 221 // API.
211 // 222 //
212 // User friendly name to show in the UI. 223 // User friendly name to show in the UI.
213 base::string16 display_name; 224 base::string16 display_name;
214 225
215 // The URL of the user's avatar to display in the UI. 226 // The URL of the user's avatar to display in the UI.
216 GURL avatar_url; 227 GURL avatar_url;
217 228
(...skipping 21 matching lines...) Expand all
239 250
240 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; 251 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap;
241 252
242 // For testing. 253 // For testing.
243 std::ostream& operator<<(std::ostream& os, 254 std::ostream& operator<<(std::ostream& os,
244 const autofill::PasswordForm& form); 255 const autofill::PasswordForm& form);
245 256
246 } // namespace autofill 257 } // namespace autofill
247 258
248 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ 259 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698