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 |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
13 #include "webkit/api/public/WebPasswordFormData.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebPasswordFormData.h" |
14 | 14 |
15 namespace webkit_glue { | 15 namespace webkit_glue { |
16 | 16 |
17 // The PasswordForm struct encapsulates information about a login form, | 17 // The PasswordForm struct encapsulates information about a login form, |
18 // which can be an HTML form or a dialog with username/password text fields. | 18 // which can be an HTML form or a dialog with username/password text fields. |
19 // | 19 // |
20 // The Web Data database stores saved username/passwords and associated form | 20 // The Web Data database stores saved username/passwords and associated form |
21 // metdata using a PasswordForm struct, typically one that was created from | 21 // metdata using a PasswordForm struct, typically one that was created from |
22 // a parsed HTMLFormElement or LoginDialog, but the saved entries could have | 22 // a parsed HTMLFormElement or LoginDialog, but the saved entries could have |
23 // also been created by imported data from another browser. | 23 // also been created by imported data from another browser. |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 blacklisted_by_user(false) { | 159 blacklisted_by_user(false) { |
160 } | 160 } |
161 }; | 161 }; |
162 | 162 |
163 // Map username to PasswordForm* for convenience. See password_form_manager.h. | 163 // Map username to PasswordForm* for convenience. See password_form_manager.h. |
164 typedef std::map<string16, PasswordForm*> PasswordFormMap; | 164 typedef std::map<string16, PasswordForm*> PasswordFormMap; |
165 | 165 |
166 } // namespace webkit_glue | 166 } // namespace webkit_glue |
167 | 167 |
168 #endif // WEBKIT_GLUE_PASSWORD_FORM_H__ | 168 #endif // WEBKIT_GLUE_PASSWORD_FORM_H__ |
OLD | NEW |