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