| 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/sync/browser/sync_credentials_filter.h" | 10 #include "components/password_manager/sync/browser/sync_credentials_filter.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 override; | 55 override; |
| 56 bool IsOffTheRecord() const override; | 56 bool IsOffTheRecord() const override; |
| 57 PrefService* GetPrefs() override; | 57 PrefService* GetPrefs() override; |
| 58 password_manager::PasswordStore* GetPasswordStore() const override; | 58 password_manager::PasswordStore* GetPasswordStore() const override; |
| 59 void NotifyUserAutoSignin(ScopedVector<autofill::PasswordForm> local_forms, | 59 void NotifyUserAutoSignin(ScopedVector<autofill::PasswordForm> local_forms, |
| 60 const GURL& origin) override; | 60 const GURL& origin) override; |
| 61 void NotifyUserCouldBeAutoSignedIn( | 61 void NotifyUserCouldBeAutoSignedIn( |
| 62 std::unique_ptr<autofill::PasswordForm> form) override; | 62 std::unique_ptr<autofill::PasswordForm> form) override; |
| 63 void NotifySuccessfulLoginWithExistingPassword( | 63 void NotifySuccessfulLoginWithExistingPassword( |
| 64 const autofill::PasswordForm& form) override; | 64 const autofill::PasswordForm& form) override; |
| 65 void NotifyStorePasswordCalled() override; |
| 65 void ForceSavePassword() override; | 66 void ForceSavePassword() override; |
| 66 bool IsSavingAndFillingEnabledForCurrentPage() const override; | 67 bool IsSavingAndFillingEnabledForCurrentPage() const override; |
| 67 const GURL& GetLastCommittedEntryURL() const override; | 68 const GURL& GetLastCommittedEntryURL() const override; |
| 68 const password_manager::CredentialsFilter* GetStoreResultFilter() | 69 const password_manager::CredentialsFilter* GetStoreResultFilter() |
| 69 const override; | 70 const override; |
| 70 | 71 |
| 71 private: | 72 private: |
| 72 id<PasswordManagerClientDelegate> delegate_; // (weak) | 73 id<PasswordManagerClientDelegate> delegate_; // (weak) |
| 73 | 74 |
| 74 // The preference associated with | 75 // The preference associated with |
| 75 // password_manager::prefs::kPasswordManagerSavingEnabled. | 76 // password_manager::prefs::kPasswordManagerSavingEnabled. |
| 76 BooleanPrefMember saving_passwords_enabled_; | 77 BooleanPrefMember saving_passwords_enabled_; |
| 77 | 78 |
| 78 const password_manager::SyncCredentialsFilter credentials_filter_; | 79 const password_manager::SyncCredentialsFilter credentials_filter_; |
| 79 | 80 |
| 80 DISALLOW_COPY_AND_ASSIGN(IOSChromePasswordManagerClient); | 81 DISALLOW_COPY_AND_ASSIGN(IOSChromePasswordManagerClient); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 #endif // IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 84 #endif // IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |