| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const GURL& origin, | 51 const GURL& origin, |
| 52 base::Callback<void(const password_manager::CredentialInfo&)> callback) | 52 base::Callback<void(const password_manager::CredentialInfo&)> callback) |
| 53 override; | 53 override; |
| 54 void AutomaticPasswordSave(scoped_ptr<password_manager::PasswordFormManager> | 54 void AutomaticPasswordSave(scoped_ptr<password_manager::PasswordFormManager> |
| 55 saved_form_manager) override; | 55 saved_form_manager) 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( | 59 void NotifyUserAutoSignin( |
| 60 ScopedVector<autofill::PasswordForm> local_forms) override; | 60 ScopedVector<autofill::PasswordForm> local_forms) override; |
| 61 void NotifyUserAutoSigninBlockedOnFirstRun( | 61 void NotifyUserCouldBeAutoSignedIn( |
| 62 scoped_ptr<autofill::PasswordForm> form) override; | 62 scoped_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 ForceSavePassword() override; | 65 void ForceSavePassword() override; |
| 66 bool IsSavingAndFillingEnabledForCurrentPage() const override; | 66 bool IsSavingAndFillingEnabledForCurrentPage() const override; |
| 67 const GURL& GetLastCommittedEntryURL() const override; | 67 const GURL& GetLastCommittedEntryURL() const override; |
| 68 const password_manager::CredentialsFilter* GetStoreResultFilter() | 68 const password_manager::CredentialsFilter* GetStoreResultFilter() |
| 69 const override; | 69 const override; |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 id<PasswordManagerClientDelegate> delegate_; // (weak) | 72 id<PasswordManagerClientDelegate> delegate_; // (weak) |
| 73 | 73 |
| 74 // The preference associated with | 74 // The preference associated with |
| 75 // password_manager::prefs::kPasswordManagerSavingEnabled. | 75 // password_manager::prefs::kPasswordManagerSavingEnabled. |
| 76 BooleanPrefMember saving_passwords_enabled_; | 76 BooleanPrefMember saving_passwords_enabled_; |
| 77 | 77 |
| 78 const password_manager::SyncCredentialsFilter credentials_filter_; | 78 const password_manager::SyncCredentialsFilter credentials_filter_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(IOSChromePasswordManagerClient); | 80 DISALLOW_COPY_AND_ASSIGN(IOSChromePasswordManagerClient); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 #endif // IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 83 #endif // IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |