| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 ~ChromePasswordManagerClient() override; | 49 ~ChromePasswordManagerClient() override; |
| 50 | 50 |
| 51 // PasswordManagerClient implementation. | 51 // PasswordManagerClient implementation. |
| 52 bool IsSavingAndFillingEnabledForCurrentPage() const override; | 52 bool IsSavingAndFillingEnabledForCurrentPage() const override; |
| 53 bool IsFillingEnabledForCurrentPage() const override; | 53 bool IsFillingEnabledForCurrentPage() const override; |
| 54 void PostHSTSQueryForHost(const GURL& origin, | 54 void PostHSTSQueryForHost(const GURL& origin, |
| 55 const HSTSCallback& callback) const override; | 55 const HSTSCallback& callback) const override; |
| 56 bool OnCredentialManagerUsed() override; | 56 bool OnCredentialManagerUsed() override; |
| 57 bool PromptUserToSaveOrUpdatePassword( | 57 bool PromptUserToSaveOrUpdatePassword( |
| 58 std::unique_ptr<password_manager::PasswordFormManager> form_to_save, | 58 std::unique_ptr<password_manager::PasswordFormManager> form_to_save, |
| 59 bool update_password) override; | 59 bool is_update) override; |
| 60 void ShowManualFallback( |
| 61 std::unique_ptr<password_manager::PasswordFormManager> form_to_save, |
| 62 bool is_update) override; |
| 63 void HideManualFallback() override; |
| 60 bool PromptUserToChooseCredentials( | 64 bool PromptUserToChooseCredentials( |
| 61 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, | 65 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, |
| 62 const GURL& origin, | 66 const GURL& origin, |
| 63 const CredentialsCallback& callback) override; | 67 const CredentialsCallback& callback) override; |
| 64 void ForceSavePassword() override; | 68 void ForceSavePassword() override; |
| 65 void GeneratePassword() override; | 69 void GeneratePassword() override; |
| 66 void NotifyUserAutoSignin( | 70 void NotifyUserAutoSignin( |
| 67 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, | 71 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, |
| 68 const GURL& origin) override; | 72 const GURL& origin) override; |
| 69 void NotifyUserCouldBeAutoSignedIn( | 73 void NotifyUserCouldBeAutoSignedIn( |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 metrics_recorder_; | 243 metrics_recorder_; |
| 240 | 244 |
| 241 // Whether navigator.credentials.store() was ever called from this | 245 // Whether navigator.credentials.store() was ever called from this |
| 242 // WebContents. Used for testing. | 246 // WebContents. Used for testing. |
| 243 bool was_store_ever_called_ = false; | 247 bool was_store_ever_called_ = false; |
| 244 | 248 |
| 245 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 249 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 246 }; | 250 }; |
| 247 | 251 |
| 248 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 252 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |