| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 148 |
| 149 // Shows the dialog where the user can accept or decline the global autosignin | 149 // Shows the dialog where the user can accept or decline the global autosignin |
| 150 // setting as a first run experience. The dialog won't appear in Incognito or | 150 // setting as a first run experience. The dialog won't appear in Incognito or |
| 151 // when the autosign-in is off. | 151 // when the autosign-in is off. |
| 152 void PromptUserToEnableAutosigninIfNecessary(); | 152 void PromptUserToEnableAutosigninIfNecessary(); |
| 153 | 153 |
| 154 // Notify the PasswordManager that generation is available for |form|. Used | 154 // Notify the PasswordManager that generation is available for |form|. Used |
| 155 // for UMA stats. | 155 // for UMA stats. |
| 156 void GenerationAvailableForForm(const autofill::PasswordForm& form); | 156 void GenerationAvailableForForm(const autofill::PasswordForm& form); |
| 157 | 157 |
| 158 // Called as a response to PromptUserToChooseCredentials. nullptr means that | 158 // Called as a response to PromptUserToChooseCredentials. nullptr in |form| |
| 159 // nothing was chosen. | 159 // means that nothing was chosen. |one_local_credential| is true if there was |
| 160 // just one local credential to be chosen from. |
| 160 void OnCredentialsChosen(const CredentialsCallback& callback, | 161 void OnCredentialsChosen(const CredentialsCallback& callback, |
| 162 bool one_local_credential, |
| 161 const autofill::PasswordForm* form); | 163 const autofill::PasswordForm* form); |
| 162 | 164 |
| 163 Profile* const profile_; | 165 Profile* const profile_; |
| 164 | 166 |
| 165 password_manager::PasswordManager password_manager_; | 167 password_manager::PasswordManager password_manager_; |
| 166 | 168 |
| 167 password_manager::ContentPasswordManagerDriverFactory* driver_factory_; | 169 password_manager::ContentPasswordManagerDriverFactory* driver_factory_; |
| 168 | 170 |
| 169 password_manager::CredentialManagerDispatcher | 171 password_manager::CredentialManagerDispatcher |
| 170 credential_manager_dispatcher_; | 172 credential_manager_dispatcher_; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 185 std::unique_ptr<password_manager::LogManager> log_manager_; | 187 std::unique_ptr<password_manager::LogManager> log_manager_; |
| 186 | 188 |
| 187 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the | 189 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the |
| 188 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. | 190 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. |
| 189 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; | 191 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; |
| 190 | 192 |
| 191 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 193 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 192 }; | 194 }; |
| 193 | 195 |
| 194 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 196 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |