| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bool HasCompletedMatching(); | 72 bool HasCompletedMatching(); |
| 73 | 73 |
| 74 // Determines if the user opted to 'never remember' passwords for this form. | 74 // Determines if the user opted to 'never remember' passwords for this form. |
| 75 bool IsBlacklisted(); | 75 bool IsBlacklisted(); |
| 76 | 76 |
| 77 // Used by PasswordManager to determine whether or not to display | 77 // Used by PasswordManager to determine whether or not to display |
| 78 // a SavePasswordBar when given the green light to save the PasswordForm | 78 // a SavePasswordBar when given the green light to save the PasswordForm |
| 79 // managed by this. | 79 // managed by this. |
| 80 bool IsNewLogin(); | 80 bool IsNewLogin(); |
| 81 | 81 |
| 82 // Returns true if the current pending credentials were found using PSL |
| 83 // origin matching. |
| 84 bool IsPSLOriginMatched(); |
| 85 |
| 82 // Checks if the form is a valid password form. Forms which lack either | 86 // Checks if the form is a valid password form. Forms which lack either |
| 83 // login or password field are not considered valid. | 87 // login or password field are not considered valid. |
| 84 bool HasValidPasswordForm(); | 88 bool HasValidPasswordForm(); |
| 85 | 89 |
| 86 // These functions are used to determine if this form has had it's password | 90 // These functions are used to determine if this form has had it's password |
| 87 // auto generated by the browser. | 91 // auto generated by the browser. |
| 88 bool HasGeneratedPassword(); | 92 bool HasGeneratedPassword(); |
| 89 void SetHasGeneratedPassword(); | 93 void SetHasGeneratedPassword(); |
| 90 | 94 |
| 91 // Determines if we need to autofill given the results of the query. | 95 // Determines if we need to autofill given the results of the query. |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // These three fields record the "ActionsTaken" by the browser and | 287 // These three fields record the "ActionsTaken" by the browser and |
| 284 // the user with this form, and the result. They are combined and | 288 // the user with this form, and the result. They are combined and |
| 285 // recorded in UMA when the manager is destroyed. | 289 // recorded in UMA when the manager is destroyed. |
| 286 ManagerAction manager_action_; | 290 ManagerAction manager_action_; |
| 287 UserAction user_action_; | 291 UserAction user_action_; |
| 288 SubmitResult submit_result_; | 292 SubmitResult submit_result_; |
| 289 | 293 |
| 290 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager); | 294 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager); |
| 291 }; | 295 }; |
| 292 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ | 296 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ |
| OLD | NEW |