| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 public content::WebContentsUserData<ChromePasswordManagerClient>, | 42 public content::WebContentsUserData<ChromePasswordManagerClient>, |
| 43 public autofill::mojom::PasswordManagerClient, | 43 public autofill::mojom::PasswordManagerClient, |
| 44 public content::RenderWidgetHost::InputEventObserver { | 44 public content::RenderWidgetHost::InputEventObserver { |
| 45 public: | 45 public: |
| 46 ~ChromePasswordManagerClient() override; | 46 ~ChromePasswordManagerClient() override; |
| 47 | 47 |
| 48 // PasswordManagerClient implementation. | 48 // PasswordManagerClient implementation. |
| 49 bool IsAutomaticPasswordSavingEnabled() const override; | 49 bool IsAutomaticPasswordSavingEnabled() const override; |
| 50 bool IsSavingAndFillingEnabledForCurrentPage() const override; | 50 bool IsSavingAndFillingEnabledForCurrentPage() const override; |
| 51 bool IsFillingEnabledForCurrentPage() const override; | 51 bool IsFillingEnabledForCurrentPage() const override; |
| 52 bool IsHSTSActiveForHost(const GURL& origin) const override; |
| 52 bool OnCredentialManagerUsed() override; | 53 bool OnCredentialManagerUsed() override; |
| 53 bool PromptUserToSaveOrUpdatePassword( | 54 bool PromptUserToSaveOrUpdatePassword( |
| 54 std::unique_ptr<password_manager::PasswordFormManager> form_to_save, | 55 std::unique_ptr<password_manager::PasswordFormManager> form_to_save, |
| 55 password_manager::CredentialSourceType type, | 56 password_manager::CredentialSourceType type, |
| 56 bool update_password) override; | 57 bool update_password) override; |
| 57 bool PromptUserToChooseCredentials( | 58 bool PromptUserToChooseCredentials( |
| 58 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, | 59 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, |
| 59 const GURL& origin, | 60 const GURL& origin, |
| 60 const CredentialsCallback& callback) override; | 61 const CredentialsCallback& callback) override; |
| 61 void ForceSavePassword() override; | 62 void ForceSavePassword() override; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 std::unique_ptr<password_manager::LogManager> log_manager_; | 195 std::unique_ptr<password_manager::LogManager> log_manager_; |
| 195 | 196 |
| 196 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the | 197 // Set during 'NotifyUserCouldBeAutoSignedIn' in order to store the |
| 197 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. | 198 // form for potential use during 'NotifySuccessfulLoginWithExistingPassword'. |
| 198 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; | 199 std::unique_ptr<autofill::PasswordForm> possible_auto_sign_in_; |
| 199 | 200 |
| 200 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 201 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 201 }; | 202 }; |
| 202 | 203 |
| 203 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 204 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |