| OLD | NEW |
| 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 Loading... |
| 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; |
| 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__ |
| OLD | NEW |