| OLD | NEW |
| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 bool blacklisted_by_user; | 182 bool blacklisted_by_user; |
| 183 | 183 |
| 184 // Enum to differentiate between manually filled forms and forms with auto | 184 // Enum to differentiate between manually filled forms and forms with auto |
| 185 // generated passwords. | 185 // generated passwords. |
| 186 enum Type { | 186 enum Type { |
| 187 TYPE_MANUAL, | 187 TYPE_MANUAL, |
| 188 TYPE_GENERATED, | 188 TYPE_GENERATED, |
| 189 TYPE_LAST = TYPE_GENERATED | 189 TYPE_LAST = TYPE_GENERATED |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 // The form type. Not used yet. Please see http://crbug.com/152422 | 192 // The form type. |
| 193 Type type; | 193 Type type; |
| 194 | 194 |
| 195 // The number of times that this username/password has been used to | 195 // The number of times that this username/password has been used to |
| 196 // authenticate the user. | 196 // authenticate the user. |
| 197 // | 197 // |
| 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 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; | 239 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; |
| 240 | 240 |
| 241 // For testing. | 241 // For testing. |
| 242 std::ostream& operator<<(std::ostream& os, | 242 std::ostream& operator<<(std::ostream& os, |
| 243 const autofill::PasswordForm& form); | 243 const autofill::PasswordForm& form); |
| 244 | 244 |
| 245 } // namespace autofill | 245 } // namespace autofill |
| 246 | 246 |
| 247 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 247 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
| OLD | NEW |