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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 // conceivable that a user (or ui test) could attempt to submit a login | 64 // conceivable that a user (or ui test) could attempt to submit a login |
65 // prompt before the callback has occured, which would InvokeLater a call to | 65 // prompt before the callback has occured, which would InvokeLater a call to |
66 // PasswordManager::ProvisionallySave, which would interact with this object | 66 // PasswordManager::ProvisionallySave, which would interact with this object |
67 // before the db has had time to answer with matching password entries. | 67 // before the db has had time to answer with matching password entries. |
68 // This is intended to be a one-time check; if the return value is false the | 68 // This is intended to be a one-time check; if the return value is false the |
69 // expectation is caller will give up. This clearly won't work if you put it | 69 // expectation is caller will give up. This clearly won't work if you put it |
70 // in a loop and wait for matching to complete; you're (supposed to be) on | 70 // in a loop and wait for matching to complete; you're (supposed to be) on |
71 // the same thread! | 71 // the same thread! |
72 bool HasCompletedMatching(); | 72 bool HasCompletedMatching(); |
73 | 73 |
74 // Save password according to current password_form. If the user has chosen | |
Garrett Casto
2013/08/27 00:52:24
I'm not sure that I understand the need for these
npentrel
2013/08/27 16:35:11
Yes, the functionality needs to be slightly differ
Garrett Casto
2013/08/28 00:08:33
In that case, shouldn't we just wait until navigat
npentrel
2013/08/28 08:48:44
We have the following two cases:
1. User saves pa
| |
75 // to blacklist the password previously this will undo this action and save | |
76 // the password. | |
77 void SavePassword(); | |
78 | |
79 // Delete saved password according to current password_form. | |
80 void DeleteSavedPassword(); | |
81 | |
74 // Determines if the user opted to 'never remember' passwords for this form. | 82 // Determines if the user opted to 'never remember' passwords for this form. |
75 bool IsBlacklisted(); | 83 bool IsBlacklisted(); |
76 | 84 |
77 // Used by PasswordManager to determine whether or not to display | 85 // Used by PasswordManager to determine whether or not to display |
78 // a SavePasswordBar when given the green light to save the PasswordForm | 86 // a SavePasswordBar when given the green light to save the PasswordForm |
79 // managed by this. | 87 // managed by this. |
80 bool IsNewLogin(); | 88 bool IsNewLogin(); |
81 | 89 |
82 // Returns true if the current pending credentials were found using | 90 // Returns true if the current pending credentials were found using |
83 // origin matching of the public suffix, instead of the signon realm of the | 91 // origin matching of the public suffix, instead of the signon realm of the |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
288 // These three fields record the "ActionsTaken" by the browser and | 296 // These three fields record the "ActionsTaken" by the browser and |
289 // the user with this form, and the result. They are combined and | 297 // the user with this form, and the result. They are combined and |
290 // recorded in UMA when the manager is destroyed. | 298 // recorded in UMA when the manager is destroyed. |
291 ManagerAction manager_action_; | 299 ManagerAction manager_action_; |
292 UserAction user_action_; | 300 UserAction user_action_; |
293 SubmitResult submit_result_; | 301 SubmitResult submit_result_; |
294 | 302 |
295 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager); | 303 DISALLOW_COPY_AND_ASSIGN(PasswordFormManager); |
296 }; | 304 }; |
297 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ | 305 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_MANAGER_H_ |
OLD | NEW |