| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // means that nothing was chosen. |one_local_credential| is true if there was | 153 // means that nothing was chosen. |one_local_credential| is true if there was |
| 154 // just one local credential to be chosen from. | 154 // just one local credential to be chosen from. |
| 155 void OnCredentialsChosen(const CredentialsCallback& callback, | 155 void OnCredentialsChosen(const CredentialsCallback& callback, |
| 156 bool one_local_credential, | 156 bool one_local_credential, |
| 157 const autofill::PasswordForm* form); | 157 const autofill::PasswordForm* form); |
| 158 | 158 |
| 159 // Returns true if this profile has metrics reporting and active sync | 159 // Returns true if this profile has metrics reporting and active sync |
| 160 // without custom sync passphrase. | 160 // without custom sync passphrase. |
| 161 static bool ShouldAnnotateNavigationEntries(Profile* profile); | 161 static bool ShouldAnnotateNavigationEntries(Profile* profile); |
| 162 | 162 |
| 163 #if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE) |
| 164 // Return true if we can set PasswordProtectionService in |
| 165 // |password_reuse_detection_manager_|. |
| 166 static bool CanSetPasswordProtectionService(); |
| 167 #endif |
| 168 |
| 163 Profile* const profile_; | 169 Profile* const profile_; |
| 164 | 170 |
| 165 password_manager::PasswordManager password_manager_; | 171 password_manager::PasswordManager password_manager_; |
| 166 | 172 |
| 167 password_manager::PasswordReuseDetectionManager | 173 password_manager::PasswordReuseDetectionManager |
| 168 password_reuse_detection_manager_; | 174 password_reuse_detection_manager_; |
| 169 | 175 |
| 170 password_manager::ContentPasswordManagerDriverFactory* driver_factory_; | 176 password_manager::ContentPasswordManagerDriverFactory* driver_factory_; |
| 171 | 177 |
| 172 // As a mojo service, will be registered into service registry | 178 // As a mojo service, will be registered into service registry |
| (...skipping 20 matching lines...) Expand all Loading... |
| 193 std::unique_ptr<password_manager::LogManager> log_manager_; | 199 std::unique_ptr<password_manager::LogManager> log_manager_; |
| 194 | 200 |
| 195 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the | 201 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the |
| 196 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. | 202 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. |
| 197 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; | 203 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; |
| 198 | 204 |
| 199 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 205 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 200 }; | 206 }; |
| 201 | 207 |
| 202 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 208 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |