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() { | |
Ilya Sherman
2013/06/07 23:47:56
nit: Please expand "PSL" to something that's clear
nyquist
2013/06/11 03:36:01
Done.
| |
85 return pending_credentials_.is_psl_origin_match; | |
86 } | |
Ilya Sherman
2013/06/07 23:47:56
nit: I've pretty much only ever seen hacker_case m
nyquist
2013/06/11 03:36:01
Done.
| |
87 | |
82 // Checks if the form is a valid password form. Forms which lack either | 88 // Checks if the form is a valid password form. Forms which lack either |
83 // login or password field are not considered valid. | 89 // login or password field are not considered valid. |
84 bool HasValidPasswordForm(); | 90 bool HasValidPasswordForm(); |
85 | 91 |
86 // These functions are used to determine if this form has had it's password | 92 // These functions are used to determine if this form has had it's password |
87 // auto generated by the browser. | 93 // auto generated by the browser. |
88 bool HasGeneratedPassword(); | 94 bool HasGeneratedPassword(); |
89 void SetHasGeneratedPassword(); | 95 void SetHasGeneratedPassword(); |
90 | 96 |
91 // Determines if we need to autofill given the results of the query. | 97 // 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 | 289 // These three fields record the "ActionsTaken" by the browser and |
284 // the user with this form, and the result. They are combined and | 290 // the user with this form, and the result. They are combined and |
285 // recorded in UMA when the manager is destroyed. | 291 // recorded in UMA when the manager is destroyed. |
286 ManagerAction manager_action_; | 292 ManagerAction manager_action_; |
287 UserAction user_action_; | 293 UserAction user_action_; |
288 SubmitResult submit_result_; | 294 SubmitResult submit_result_; |
289 | 295 |
290 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager); | 296 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager); |
291 }; | 297 }; |
292 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ | 298 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ |
OLD | NEW |