OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_PASSWORD_FORM_H__ | 5 #ifndef WEBKIT_GLUE_PASSWORD_FORM_H__ |
6 #define WEBKIT_GLUE_PASSWORD_FORM_H__ | 6 #define WEBKIT_GLUE_PASSWORD_FORM_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // the site, this will always be true, but when there are multiple entries | 117 // the site, this will always be true, but when there are multiple entries |
118 // the PasswordManager ensures that only one of them has a preferred bit set | 118 // the PasswordManager ensures that only one of them has a preferred bit set |
119 // to true. Default to false. | 119 // to true. Default to false. |
120 // | 120 // |
121 // When parsing an HTML form, this is not used. | 121 // When parsing an HTML form, this is not used. |
122 bool preferred; | 122 bool preferred; |
123 | 123 |
124 // When the login was saved (by chrome). | 124 // When the login was saved (by chrome). |
125 // | 125 // |
126 // When parsing an HTML form, this is not used. | 126 // When parsing an HTML form, this is not used. |
127 Time date_created; | 127 base::Time date_created; |
128 | 128 |
129 // Tracks if the user opted to never remember passwords for this form. Default | 129 // Tracks if the user opted to never remember passwords for this form. Default |
130 // to false. | 130 // to false. |
131 // | 131 // |
132 // When parsing an HTML form, this is not used. | 132 // When parsing an HTML form, this is not used. |
133 bool blacklisted_by_user; | 133 bool blacklisted_by_user; |
134 | 134 |
135 PasswordForm() | 135 PasswordForm() |
136 : scheme(SCHEME_HTML), | 136 : scheme(SCHEME_HTML), |
137 ssl_valid(false), | 137 ssl_valid(false), |
138 preferred(false), | 138 preferred(false), |
139 blacklisted_by_user(false) { | 139 blacklisted_by_user(false) { |
140 } | 140 } |
141 }; | 141 }; |
142 | 142 |
143 // Map username to PasswordForm* for convenience. See password_form_manager.h. | 143 // Map username to PasswordForm* for convenience. See password_form_manager.h. |
144 typedef std::map<std::wstring, PasswordForm*> PasswordFormMap; | 144 typedef std::map<std::wstring, PasswordForm*> PasswordFormMap; |
145 | 145 |
146 #endif // WEBKIT_GLUE_PASSWORD_FORM_H__ | 146 #endif // WEBKIT_GLUE_PASSWORD_FORM_H__ |
147 | 147 |
OLD | NEW |