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_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 // When the user submits a password/credential, this contains the | 90 // When the user submits a password/credential, this contains the |
91 // PasswordFormManager for the form in question until we deem the login | 91 // PasswordFormManager for the form in question until we deem the login |
92 // attempt to have succeeded (as in valid credentials). If it fails, we | 92 // attempt to have succeeded (as in valid credentials). If it fails, we |
93 // send the PasswordFormManager back to the pending_login_managers_ set. | 93 // send the PasswordFormManager back to the pending_login_managers_ set. |
94 // Scoped in case PasswordManager gets deleted (e.g tab closes) between the | 94 // Scoped in case PasswordManager gets deleted (e.g tab closes) between the |
95 // time a user submits a login form and gets to the next page. | 95 // time a user submits a login form and gets to the next page. |
96 scoped_ptr<PasswordFormManager> provisional_save_manager_; | 96 scoped_ptr<PasswordFormManager> provisional_save_manager_; |
97 | 97 |
98 // Our delegate for carrying out external operations. This is typically the | 98 // Our delegate for carrying out external operations. This is typically the |
99 // containing TabContents. | 99 // containing WebContents. |
100 PasswordManagerDelegate* const delegate_; | 100 PasswordManagerDelegate* const delegate_; |
101 | 101 |
102 // The LoginModelObserver (i.e LoginView) requiring autofill. | 102 // The LoginModelObserver (i.e LoginView) requiring autofill. |
103 LoginModelObserver* observer_; | 103 LoginModelObserver* observer_; |
104 | 104 |
105 // Set to false to disable the password manager (will no longer fill | 105 // Set to false to disable the password manager (will no longer fill |
106 // passwords or ask you if you want to save passwords). | 106 // passwords or ask you if you want to save passwords). |
107 BooleanPrefMember password_manager_enabled_; | 107 BooleanPrefMember password_manager_enabled_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(PasswordManager); | 109 DISALLOW_COPY_AND_ASSIGN(PasswordManager); |
110 }; | 110 }; |
111 | 111 |
112 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ | 112 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
OLD | NEW |