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_H__ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // the PasswordManager for form autofill; that is, the action of the saved | 100 // the PasswordManager for form autofill; that is, the action of the saved |
101 // credentials must match the action of the form on the page to be autofilled. | 101 // credentials must match the action of the form on the page to be autofilled. |
102 // If this is empty / not available, it will result in a "restricted" IE-like | 102 // If this is empty / not available, it will result in a "restricted" IE-like |
103 // autofill policy, where we wait for the user to type in his username before | 103 // autofill policy, where we wait for the user to type in his username before |
104 // autofilling the password. In these cases, after successful login the action | 104 // autofilling the password. In these cases, after successful login the action |
105 // URL will automatically be assigned by the PasswordManager. | 105 // URL will automatically be assigned by the PasswordManager. |
106 // | 106 // |
107 // When parsing an HTML form, this must always be set. | 107 // When parsing an HTML form, this must always be set. |
108 GURL action; | 108 GURL action; |
109 | 109 |
| 110 // The web realm affiliated with the Android application, if the form is an |
| 111 // Android credential. Otherwise, the string is empty. If there are several |
| 112 // realms affiliated with the application, an arbitrary realm is chosen. |
| 113 // The field is filled out in PasswordStore's InjectAffiliatedWebRealms. |
| 114 // If there was no call of InjectAffiliatedWebRealms, the string is empty. |
| 115 std::string affiliated_web_realm; |
| 116 |
110 // The name of the submit button used. Optional; only used in scoring | 117 // The name of the submit button used. Optional; only used in scoring |
111 // of PasswordForm results from the database to make matches as tight as | 118 // of PasswordForm results from the database to make matches as tight as |
112 // possible. | 119 // possible. |
113 // | 120 // |
114 // When parsing an HTML form, this must always be set. | 121 // When parsing an HTML form, this must always be set. |
115 base::string16 submit_element; | 122 base::string16 submit_element; |
116 | 123 |
117 // The name of the username input element. Optional (improves scoring). | 124 // The name of the username input element. Optional (improves scoring). |
118 // | 125 // |
119 // When parsing an HTML form, this must always be set. | 126 // When parsing an HTML form, this must always be set. |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 using ConstPasswordFormMap = std::map<base::string16, const PasswordForm*>; | 309 using ConstPasswordFormMap = std::map<base::string16, const PasswordForm*>; |
303 | 310 |
304 // For testing. | 311 // For testing. |
305 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); | 312 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); |
306 std::ostream& operator<<(std::ostream& os, const PasswordForm& form); | 313 std::ostream& operator<<(std::ostream& os, const PasswordForm& form); |
307 std::ostream& operator<<(std::ostream& os, PasswordForm* form); | 314 std::ostream& operator<<(std::ostream& os, PasswordForm* form); |
308 | 315 |
309 } // namespace autofill | 316 } // namespace autofill |
310 | 317 |
311 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 318 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
OLD | NEW |