OLD | NEW |
1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_PASSWORD_FORM_DOM_MANAGER_H_ | 5 #ifndef WEBKIT_GLUE_PASSWORD_FORM_DOM_MANAGER_H_ |
6 #define WEBKIT_GLUE_PASSWORD_FORM_DOM_MANAGER_H_ | 6 #define WEBKIT_GLUE_PASSWORD_FORM_DOM_MANAGER_H_ |
7 | 7 |
| 8 #include <map> |
| 9 |
8 #include "webkit/glue/form_data.h" | 10 #include "webkit/glue/form_data.h" |
9 #include "webkit/glue/password_form.h" | 11 #include "webkit/glue/password_form.h" |
10 | 12 |
11 namespace WebKit { | 13 namespace WebKit { |
12 class WebForm; | 14 class WebForm; |
13 } | 15 } |
14 | 16 |
15 class GURL; | |
16 | |
17 namespace webkit_glue { | 17 namespace webkit_glue { |
18 | 18 |
19 // Structure used for autofilling password forms. | 19 // Structure used for autofilling password forms. |
20 // basic_data identifies the HTML form on the page and preferred username/ | 20 // basic_data identifies the HTML form on the page and preferred username/ |
21 // password for login, while | 21 // password for login, while |
22 // additional_logins is a list of other matching user/pass pairs for the form. | 22 // additional_logins is a list of other matching user/pass pairs for the form. |
23 // wait_for_username tells us whether we need to wait for the user to enter | 23 // wait_for_username tells us whether we need to wait for the user to enter |
24 // a valid username before we autofill the password. By default, this is off | 24 // a valid username before we autofill the password. By default, this is off |
25 // unless the PasswordManager determined there is an additional risk | 25 // unless the PasswordManager determined there is an additional risk |
26 // associated with this form. This can happen, for example, if action URI's | 26 // associated with this form. This can happen, for example, if action URI's |
(...skipping 27 matching lines...) Expand all Loading... |
54 const PasswordForm* const preferred_match, | 54 const PasswordForm* const preferred_match, |
55 bool wait_for_username_before_autofill, | 55 bool wait_for_username_before_autofill, |
56 PasswordFormFillData* result); | 56 PasswordFormFillData* result); |
57 private: | 57 private: |
58 DISALLOW_IMPLICIT_CONSTRUCTORS(PasswordFormDomManager); | 58 DISALLOW_IMPLICIT_CONSTRUCTORS(PasswordFormDomManager); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace webkit_glue | 61 } // namespace webkit_glue |
62 | 62 |
63 #endif // WEBKIT_GLUE_PASSWORD_FORM_DOM_MANAGER_H__ | 63 #endif // WEBKIT_GLUE_PASSWORD_FORM_DOM_MANAGER_H__ |
OLD | NEW |