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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 // The layout as determined during parsing. Default value is LAYOUT_OTHER. | 257 // The layout as determined during parsing. Default value is LAYOUT_OTHER. |
258 Layout layout; | 258 Layout layout; |
259 | 259 |
260 // If true, this form was parsed using Autofill predictions. | 260 // If true, this form was parsed using Autofill predictions. |
261 bool was_parsed_using_autofill_predictions; | 261 bool was_parsed_using_autofill_predictions; |
262 | 262 |
263 // TODO(vabr): Remove |is_alive| once http://crbug.com/486931 is fixed. | 263 // TODO(vabr): Remove |is_alive| once http://crbug.com/486931 is fixed. |
264 bool is_alive; // Set on construction, reset on destruction. | 264 bool is_alive; // Set on construction, reset on destruction. |
265 | 265 |
266 // if true this match was found using public suffix matching. | 266 // If true, this match was found using public suffix matching. |
267 bool is_public_suffix_match; | 267 bool is_public_suffix_match; |
268 | 268 |
269 // if true this form is affiliated with Android credentials. | 269 // If true, this is a credential saved through an Android application, and |
270 bool is_affiliated; | 270 // found using affiliation-based match. |
| 271 bool is_affiliation_based_match; |
271 | 272 |
272 // Return true if we consider this form to be a change password form. | 273 // Return true if we consider this form to be a change password form. |
273 // We use only client heuristics, so it could include signup forms. | 274 // We use only client heuristics, so it could include signup forms. |
274 bool IsPossibleChangePasswordForm() const; | 275 bool IsPossibleChangePasswordForm() const; |
275 | 276 |
276 // Return true if we consider this form to be a change password form | 277 // Return true if we consider this form to be a change password form |
277 // without username field. We use only client heuristics, so it could | 278 // without username field. We use only client heuristics, so it could |
278 // include signup forms. | 279 // include signup forms. |
279 bool IsPossibleChangePasswordFormWithoutUsername() const; | 280 bool IsPossibleChangePasswordFormWithoutUsername() const; |
280 | 281 |
(...skipping 23 matching lines...) Expand all Loading... |
304 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; | 305 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; |
305 | 306 |
306 // For testing. | 307 // For testing. |
307 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); | 308 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); |
308 std::ostream& operator<<(std::ostream& os, const PasswordForm& form); | 309 std::ostream& operator<<(std::ostream& os, const PasswordForm& form); |
309 std::ostream& operator<<(std::ostream& os, PasswordForm* form); | 310 std::ostream& operator<<(std::ostream& os, PasswordForm* form); |
310 | 311 |
311 } // namespace autofill | 312 } // namespace autofill |
312 | 313 |
313 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 314 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
OLD | NEW |