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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
264 | 264 |
265 // If true, this form was parsed using Autofill predictions. | 265 // If true, this form was parsed using Autofill predictions. |
266 bool was_parsed_using_autofill_predictions; | 266 bool was_parsed_using_autofill_predictions; |
267 | 267 |
268 // TODO(vabr): Remove |is_alive| once http://crbug.com/486931 is fixed. | 268 // TODO(vabr): Remove |is_alive| once http://crbug.com/486931 is fixed. |
269 bool is_alive; // Set on construction, reset on destruction. | 269 bool is_alive; // Set on construction, reset on destruction. |
270 | 270 |
271 // Returns true if this match was found using public suffix matching. | 271 // Returns true if this match was found using public suffix matching. |
272 bool IsPublicSuffixMatch() const; | 272 bool IsPublicSuffixMatch() const; |
273 | 273 |
274 // Return true if we consider this form to be a change password form. | |
275 // We use only client heuristics for this, so probably we are wrong. | |
Garrett Casto
2015/06/12 22:22:16
I wouldn't say "probably we are wrong" here. I wou
dvadym
2015/06/15 09:34:59
I changed text to
"We use only client heuristics,
| |
276 bool IsPossibleChangePasswordForm() const; | |
277 | |
274 // Equality operators for testing. | 278 // Equality operators for testing. |
275 bool operator==(const PasswordForm& form) const; | 279 bool operator==(const PasswordForm& form) const; |
276 bool operator!=(const PasswordForm& form) const; | 280 bool operator!=(const PasswordForm& form) const; |
277 | 281 |
278 PasswordForm(); | 282 PasswordForm(); |
279 ~PasswordForm(); | 283 ~PasswordForm(); |
280 }; | 284 }; |
281 | 285 |
282 // Map username to PasswordForm* for convenience. See password_form_manager.h. | 286 // Map username to PasswordForm* for convenience. See password_form_manager.h. |
283 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; | 287 typedef std::map<base::string16, PasswordForm*> PasswordFormMap; |
284 | 288 |
285 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; | 289 typedef std::map<base::string16, const PasswordForm*> ConstPasswordFormMap; |
286 | 290 |
287 // For testing. | 291 // For testing. |
288 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); | 292 std::ostream& operator<<(std::ostream& os, PasswordForm::Layout layout); |
289 std::ostream& operator<<(std::ostream& os, const autofill::PasswordForm& form); | 293 std::ostream& operator<<(std::ostream& os, const autofill::PasswordForm& form); |
290 std::ostream& operator<<(std::ostream& os, autofill::PasswordForm* form); | 294 std::ostream& operator<<(std::ostream& os, autofill::PasswordForm* form); |
291 | 295 |
292 } // namespace autofill | 296 } // namespace autofill |
293 | 297 |
294 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ | 298 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__ |
OLD | NEW |