| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // to true. Default to false. | 152 // to true. Default to false. |
| 153 // | 153 // |
| 154 // When parsing an HTML form, this is not used. | 154 // When parsing an HTML form, this is not used. |
| 155 bool preferred; | 155 bool preferred; |
| 156 | 156 |
| 157 // When the login was saved (by chrome). | 157 // When the login was saved (by chrome). |
| 158 // | 158 // |
| 159 // When parsing an HTML form, this is not used. | 159 // When parsing an HTML form, this is not used. |
| 160 base::Time date_created; | 160 base::Time date_created; |
| 161 | 161 |
| 162 // When the login was downloaded from the sync server. For local passwords is |
| 163 // not used. |
| 164 // |
| 165 // When parsing an HTML form, this is not used. |
| 166 base::Time date_synced; |
| 167 |
| 162 // Tracks if the user opted to never remember passwords for this form. Default | 168 // Tracks if the user opted to never remember passwords for this form. Default |
| 163 // to false. | 169 // to false. |
| 164 // | 170 // |
| 165 // When parsing an HTML form, this is not used. | 171 // When parsing an HTML form, this is not used. |
| 166 bool blacklisted_by_user; | 172 bool blacklisted_by_user; |
| 167 | 173 |
| 168 // Enum to differentiate between manually filled forms and forms with auto | 174 // Enum to differentiate between manually filled forms and forms with auto |
| 169 // generated passwords. | 175 // generated passwords. |
| 170 enum Type { | 176 enum Type { |
| 171 TYPE_MANUAL, | 177 TYPE_MANUAL, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // Map username to PasswordForm* for convenience. See password_form_manager.h. | 215 // Map username to PasswordForm* for convenience. See password_form_manager.h. |
| 210 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; | 216 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; |
| 211 | 217 |
| 212 // For testing. | 218 // For testing. |
| 213 std::ostream& operator<<(std::ostream& os, | 219 std::ostream& operator<<(std::ostream& os, |
| 214 const autofill::PasswordForm& form); | 220 const autofill::PasswordForm& form); |
| 215 | 221 |
| 216 } // namespace autofill | 222 } // namespace autofill |
| 217 | 223 |
| 218 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 224 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
| OLD | NEW |