| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 public: | 46 public: |
| 47 ~ChromePasswordManagerClient() override; | 47 ~ChromePasswordManagerClient() override; |
| 48 | 48 |
| 49 // PasswordManagerClient implementation. | 49 // PasswordManagerClient implementation. |
| 50 bool IsSavingAndFillingEnabledForCurrentPage() const override; | 50 bool IsSavingAndFillingEnabledForCurrentPage() const override; |
| 51 bool IsFillingEnabledForCurrentPage() const override; | 51 bool IsFillingEnabledForCurrentPage() const override; |
| 52 void PostHSTSQueryForHost(const GURL& origin, | 52 void PostHSTSQueryForHost(const GURL& origin, |
| 53 const HSTSCallback& callback) const override; | 53 const HSTSCallback& callback) const override; |
| 54 bool OnCredentialManagerUsed() override; | 54 bool OnCredentialManagerUsed() override; |
| 55 bool PromptUserToSaveOrUpdatePassword( | 55 bool PromptUserToSaveOrUpdatePassword( |
| 56 std::unique_ptr<password_manager::PasswordFormManager> form_to_save, | 56 scoped_refptr<password_manager::PasswordFormManager> form_to_save, |
| 57 bool update_password) override; | 57 bool update_password) override; |
| 58 bool PromptUserToChooseCredentials( | 58 bool PromptUserToChooseCredentials( |
| 59 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, | 59 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, |
| 60 const GURL& origin, | 60 const GURL& origin, |
| 61 const CredentialsCallback& callback) override; | 61 const CredentialsCallback& callback) override; |
| 62 void ForceSavePassword() override; | 62 void ForceSavePassword() override; |
| 63 void GeneratePassword() override; | 63 void GeneratePassword() override; |
| 64 void NotifyUserAutoSignin( | 64 void NotifyUserAutoSignin( |
| 65 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, | 65 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, |
| 66 const GURL& origin) override; | 66 const GURL& origin) override; |
| 67 void NotifyUserCouldBeAutoSignedIn( | 67 void NotifyUserCouldBeAutoSignedIn( |
| 68 std::unique_ptr<autofill::PasswordForm> form) override; | 68 std::unique_ptr<autofill::PasswordForm> form) override; |
| 69 void NotifySuccessfulLoginWithExistingPassword( | 69 void NotifySuccessfulLoginWithExistingPassword( |
| 70 const autofill::PasswordForm& form) override; | 70 const autofill::PasswordForm& form) override; |
| 71 void NotifyStorePasswordCalled() override; | 71 void NotifyStorePasswordCalled() override; |
| 72 void AutomaticPasswordSave( | 72 void AutomaticPasswordSave( |
| 73 std::unique_ptr<password_manager::PasswordFormManager> saved_form_manager) | 73 scoped_refptr<password_manager::PasswordFormManager> saved_form_manager) |
| 74 override; | 74 override; |
| 75 void PasswordWasAutofilled( | 75 void PasswordWasAutofilled( |
| 76 const std::map<base::string16, const autofill::PasswordForm*>& | 76 const std::map<base::string16, const autofill::PasswordForm*>& |
| 77 best_matches, | 77 best_matches, |
| 78 const GURL& origin, | 78 const GURL& origin, |
| 79 const std::vector<const autofill::PasswordForm*>* federated_matches) | 79 const std::vector<const autofill::PasswordForm*>* federated_matches) |
| 80 const override; | 80 const override; |
| 81 PrefService* GetPrefs() override; | 81 PrefService* GetPrefs() override; |
| 82 password_manager::PasswordStore* GetPasswordStore() const override; | 82 password_manager::PasswordStore* GetPasswordStore() const override; |
| 83 password_manager::PasswordSyncState GetPasswordSyncState() const override; | 83 password_manager::PasswordSyncState GetPasswordSyncState() const override; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 std::unique_ptr<password_manager::LogManager> log_manager_; | 212 std::unique_ptr<password_manager::LogManager> log_manager_; |
| 213 | 213 |
| 214 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the | 214 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the |
| 215 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. | 215 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. |
| 216 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; | 216 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; |
| 217 | 217 |
| 218 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 218 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 221 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |