| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 bool PromptUserToChooseCredentials( | 55 bool PromptUserToChooseCredentials( |
| 56 ScopedVector<autofill::PasswordForm> local_forms, | 56 ScopedVector<autofill::PasswordForm> local_forms, |
| 57 ScopedVector<autofill::PasswordForm> federated_forms, | 57 ScopedVector<autofill::PasswordForm> federated_forms, |
| 58 const GURL& origin, | 58 const GURL& origin, |
| 59 base::Callback<void(const password_manager::CredentialInfo&)> callback) | 59 base::Callback<void(const password_manager::CredentialInfo&)> callback) |
| 60 override; | 60 override; |
| 61 void ForceSavePassword() override; | 61 void ForceSavePassword() override; |
| 62 void GeneratePassword() override; | 62 void GeneratePassword() override; |
| 63 void NotifyUserAutoSignin( | 63 void NotifyUserAutoSignin( |
| 64 ScopedVector<autofill::PasswordForm> local_forms) override; | 64 ScopedVector<autofill::PasswordForm> local_forms) override; |
| 65 void NotifyUserAutoSigninBlockedOnFirstRun( | 65 void NotifyUserCouldBeAutoSignedIn( |
| 66 scoped_ptr<autofill::PasswordForm> form) override; | 66 scoped_ptr<autofill::PasswordForm> form) override; |
| 67 void NotifySuccessfulLoginWithExistingPassword( | 67 void NotifySuccessfulLoginWithExistingPassword( |
| 68 const autofill::PasswordForm& form) override; | 68 const autofill::PasswordForm& form) override; |
| 69 void AutomaticPasswordSave(scoped_ptr<password_manager::PasswordFormManager> | 69 void AutomaticPasswordSave(scoped_ptr<password_manager::PasswordFormManager> |
| 70 saved_form_manager) override; | 70 saved_form_manager) override; |
| 71 void PasswordWasAutofilled(const autofill::PasswordFormMap& best_matches, | 71 void PasswordWasAutofilled(const autofill::PasswordFormMap& best_matches, |
| 72 const GURL& origin) const override; | 72 const GURL& origin) const override; |
| 73 PrefService* GetPrefs() override; | 73 PrefService* GetPrefs() override; |
| 74 password_manager::PasswordStore* GetPasswordStore() const override; | 74 password_manager::PasswordStore* GetPasswordStore() const override; |
| 75 password_manager::PasswordSyncState GetPasswordSyncState() const override; | 75 password_manager::PasswordSyncState GetPasswordSyncState() const override; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 autofill::PasswordGenerationPopupControllerImpl> popup_controller_; | 174 autofill::PasswordGenerationPopupControllerImpl> popup_controller_; |
| 175 | 175 |
| 176 // Set to false to disable password saving (will no longer ask if you | 176 // Set to false to disable password saving (will no longer ask if you |
| 177 // want to save passwords and also won't fill the passwords). | 177 // want to save passwords and also won't fill the passwords). |
| 178 BooleanPrefMember saving_and_filling_passwords_enabled_; | 178 BooleanPrefMember saving_and_filling_passwords_enabled_; |
| 179 | 179 |
| 180 const password_manager::SyncCredentialsFilter credentials_filter_; | 180 const password_manager::SyncCredentialsFilter credentials_filter_; |
| 181 | 181 |
| 182 scoped_ptr<password_manager::LogManager> log_manager_; | 182 scoped_ptr<password_manager::LogManager> log_manager_; |
| 183 | 183 |
| 184 // Set during 'NotifyUserAutoSigninBlockedOnFirstRun' in order to store the | 184 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the |
| 185 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. | 185 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. |
| 186 scoped_ptr<autofill::PasswordForm> form_blocked_on_first_run_; | 186 scoped_ptr<autofill::PasswordForm> possible_auto_sign_in_; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 188 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 191 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |