| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 5 #ifndef IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| 6 #define IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 6 #define IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #import "components/password_manager/core/browser/password_manager_client.h" | 9 #import "components/password_manager/core/browser/password_manager_client.h" |
| 10 #include "components/password_manager/core/browser/password_manager_metrics_reco
rder.h" | 10 #include "components/password_manager/core/browser/password_manager_metrics_reco
rder.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 explicit IOSChromePasswordManagerClient( | 42 explicit IOSChromePasswordManagerClient( |
| 43 id<PasswordManagerClientDelegate> delegate); | 43 id<PasswordManagerClientDelegate> delegate); |
| 44 | 44 |
| 45 ~IOSChromePasswordManagerClient() override; | 45 ~IOSChromePasswordManagerClient() override; |
| 46 | 46 |
| 47 // password_manager::PasswordManagerClient implementation. | 47 // password_manager::PasswordManagerClient implementation. |
| 48 password_manager::PasswordSyncState GetPasswordSyncState() const override; | 48 password_manager::PasswordSyncState GetPasswordSyncState() const override; |
| 49 bool PromptUserToSaveOrUpdatePassword( | 49 bool PromptUserToSaveOrUpdatePassword( |
| 50 std::unique_ptr<password_manager::PasswordFormManager> form_to_save, | 50 std::unique_ptr<password_manager::PasswordFormManager> form_to_save, |
| 51 bool update_password) override; | 51 bool update_password) override; |
| 52 void ShowManualFallbackForSaving( |
| 53 std::unique_ptr<password_manager::PasswordFormManager> form_to_save, |
| 54 bool has_generated_password, |
| 55 bool is_update) override; |
| 56 void HideManualFallbackForSaving() override; |
| 52 bool PromptUserToChooseCredentials( | 57 bool PromptUserToChooseCredentials( |
| 53 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, | 58 std::vector<std::unique_ptr<autofill::PasswordForm>> local_forms, |
| 54 const GURL& origin, | 59 const GURL& origin, |
| 55 const CredentialsCallback& callback) override; | 60 const CredentialsCallback& callback) override; |
| 56 void AutomaticPasswordSave( | 61 void AutomaticPasswordSave( |
| 57 std::unique_ptr<password_manager::PasswordFormManager> saved_form_manager) | 62 std::unique_ptr<password_manager::PasswordFormManager> saved_form_manager) |
| 58 override; | 63 override; |
| 59 bool IsIncognito() const override; | 64 bool IsIncognito() const override; |
| 60 PrefService* GetPrefs() override; | 65 PrefService* GetPrefs() override; |
| 61 password_manager::PasswordStore* GetPasswordStore() const override; | 66 password_manager::PasswordStore* GetPasswordStore() const override; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // Recorder of metrics that is associated with the last committed navigation | 102 // Recorder of metrics that is associated with the last committed navigation |
| 98 // of the tab owning this ChromePasswordManagerClient. May be unset at | 103 // of the tab owning this ChromePasswordManagerClient. May be unset at |
| 99 // times. Sends statistics on destruction. | 104 // times. Sends statistics on destruction. |
| 100 base::Optional<password_manager::PasswordManagerMetricsRecorder> | 105 base::Optional<password_manager::PasswordManagerMetricsRecorder> |
| 101 metrics_recorder_; | 106 metrics_recorder_; |
| 102 | 107 |
| 103 DISALLOW_COPY_AND_ASSIGN(IOSChromePasswordManagerClient); | 108 DISALLOW_COPY_AND_ASSIGN(IOSChromePasswordManagerClient); |
| 104 }; | 109 }; |
| 105 | 110 |
| 106 #endif // IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 111 #endif // IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |