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_FILL_DATA_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // before we autofill the password. By default, this is off unless the | 70 // before we autofill the password. By default, this is off unless the |
71 // PasswordManager determined there is an additional risk associated with this | 71 // PasswordManager determined there is an additional risk associated with this |
72 // form. This can happen, for example, if action URI's of the observed form | 72 // form. This can happen, for example, if action URI's of the observed form |
73 // and our saved representation don't match up. | 73 // and our saved representation don't match up. |
74 bool wait_for_username; | 74 bool wait_for_username; |
75 | 75 |
76 // True if this form is a change password form. | 76 // True if this form is a change password form. |
77 bool is_possible_change_password_form; | 77 bool is_possible_change_password_form; |
78 | 78 |
79 PasswordFormFillData(); | 79 PasswordFormFillData(); |
| 80 PasswordFormFillData(const PasswordFormFillData& other); |
80 ~PasswordFormFillData(); | 81 ~PasswordFormFillData(); |
81 }; | 82 }; |
82 | 83 |
83 // Create a FillData structure in preparation for autofilling a form, | 84 // Create a FillData structure in preparation for autofilling a form, |
84 // from basic_data identifying which form to fill, and a collection of | 85 // from basic_data identifying which form to fill, and a collection of |
85 // matching stored logins to use as username/password values. | 86 // matching stored logins to use as username/password values. |
86 // |preferred_match| should equal (address) one of matches. | 87 // |preferred_match| should equal (address) one of matches. |
87 // |wait_for_username_before_autofill| is true if we should not autofill | 88 // |wait_for_username_before_autofill| is true if we should not autofill |
88 // anything until the user typed in a valid username and blurred the field. | 89 // anything until the user typed in a valid username and blurred the field. |
89 // If |enable_possible_usernames| is true, we will populate possible_usernames | 90 // If |enable_possible_usernames| is true, we will populate possible_usernames |
90 // in |result|. | 91 // in |result|. |
91 void InitPasswordFormFillData( | 92 void InitPasswordFormFillData( |
92 const PasswordForm& form_on_page, | 93 const PasswordForm& form_on_page, |
93 const PasswordFormMap& matches, | 94 const PasswordFormMap& matches, |
94 const PasswordForm* const preferred_match, | 95 const PasswordForm* const preferred_match, |
95 bool wait_for_username_before_autofill, | 96 bool wait_for_username_before_autofill, |
96 bool enable_other_possible_usernames, | 97 bool enable_other_possible_usernames, |
97 PasswordFormFillData* result); | 98 PasswordFormFillData* result); |
98 | 99 |
99 } // namespace autofill | 100 } // namespace autofill |
100 | 101 |
101 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H__ | 102 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_FILL_DATA_H__ |
OLD | NEW |