| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 public content::WebContentsObserver, | 45 public content::WebContentsObserver, |
| 46 public content::WebContentsUserData<ChromePasswordManagerClient>, | 46 public content::WebContentsUserData<ChromePasswordManagerClient>, |
| 47 public autofill::mojom::PasswordManagerClient { | 47 public autofill::mojom::PasswordManagerClient { |
| 48 public: | 48 public: |
| 49 ~ChromePasswordManagerClient() override; | 49 ~ChromePasswordManagerClient() override; |
| 50 | 50 |
| 51 // PasswordManagerClient implementation. | 51 // PasswordManagerClient implementation. |
| 52 bool IsAutomaticPasswordSavingEnabled() const override; | 52 bool IsAutomaticPasswordSavingEnabled() const override; |
| 53 bool IsSavingAndFillingEnabledForCurrentPage() const override; | 53 bool IsSavingAndFillingEnabledForCurrentPage() const override; |
| 54 bool IsFillingEnabledForCurrentPage() const override; | 54 bool IsFillingEnabledForCurrentPage() const override; |
| 55 bool OnCredentialManagerUsed() override; |
| 55 bool PromptUserToSaveOrUpdatePassword( | 56 bool PromptUserToSaveOrUpdatePassword( |
| 56 std::unique_ptr<password_manager::PasswordFormManager> form_to_save, | 57 std::unique_ptr<password_manager::PasswordFormManager> form_to_save, |
| 57 password_manager::CredentialSourceType type, | 58 password_manager::CredentialSourceType type, |
| 58 bool update_password) override; | 59 bool update_password) override; |
| 59 bool PromptUserToChooseCredentials( | 60 bool PromptUserToChooseCredentials( |
| 60 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, | 61 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, |
| 61 const GURL& origin, | 62 const GURL& origin, |
| 62 const CredentialsCallback& callback) override; | 63 const CredentialsCallback& callback) override; |
| 63 void ForceSavePassword() override; | 64 void ForceSavePassword() override; |
| 64 void GeneratePassword() override; | 65 void GeneratePassword() override; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 std::unique_ptr<password_manager::LogManager> log_manager_; | 185 std::unique_ptr<password_manager::LogManager> log_manager_; |
| 185 | 186 |
| 186 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the | 187 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the |
| 187 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. | 188 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. |
| 188 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; | 189 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; |
| 189 | 190 |
| 190 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 191 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 191 }; | 192 }; |
| 192 | 193 |
| 193 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 194 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |