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> |
11 | 11 |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "url/gurl.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 // The PasswordForm struct encapsulates information about a login form, | 18 // The PasswordForm struct encapsulates information about a login form, |
19 // which can be an HTML form or a dialog with username/password text fields. | 19 // which can be an HTML form or a dialog with username/password text fields. |
20 // | 20 // |
21 // The Web Data database stores saved username/passwords and associated form | 21 // The Web Data database stores saved username/passwords and associated form |
22 // metdata using a PasswordForm struct, typically one that was created from | 22 // metdata using a PasswordForm struct, typically one that was created from |
23 // a parsed HTMLFormElement or LoginDialog, but the saved entries could have | 23 // a parsed HTMLFormElement or LoginDialog, but the saved entries could have |
24 // also been created by imported data from another browser. | 24 // also been created by imported data from another browser. |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 PasswordForm(); | 187 PasswordForm(); |
188 ~PasswordForm(); | 188 ~PasswordForm(); |
189 }; | 189 }; |
190 | 190 |
191 // Map username to PasswordForm* for convenience. See password_form_manager.h. | 191 // Map username to PasswordForm* for convenience. See password_form_manager.h. |
192 typedef std::map<string16, PasswordForm*> PasswordFormMap; | 192 typedef std::map<string16, PasswordForm*> PasswordFormMap; |
193 | 193 |
194 } // namespace content | 194 } // namespace content |
195 | 195 |
196 #endif // CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__ | 196 #endif // CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__ |
OLD | NEW |