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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // password_manager::PasswordManagerClient implementation. | 42 // password_manager::PasswordManagerClient implementation. |
43 password_manager::PasswordSyncState GetPasswordSyncState() const override; | 43 password_manager::PasswordSyncState GetPasswordSyncState() const override; |
44 bool PromptUserToSaveOrUpdatePassword( | 44 bool PromptUserToSaveOrUpdatePassword( |
45 scoped_ptr<password_manager::PasswordFormManager> form_to_save, | 45 scoped_ptr<password_manager::PasswordFormManager> form_to_save, |
46 password_manager::CredentialSourceType type, | 46 password_manager::CredentialSourceType type, |
47 bool update_password) override; | 47 bool update_password) override; |
48 bool PromptUserToChooseCredentials( | 48 bool PromptUserToChooseCredentials( |
49 ScopedVector<autofill::PasswordForm> local_forms, | 49 ScopedVector<autofill::PasswordForm> local_forms, |
50 ScopedVector<autofill::PasswordForm> federated_forms, | 50 ScopedVector<autofill::PasswordForm> federated_forms, |
51 const GURL& origin, | 51 const GURL& origin, |
52 base::Callback<void(const password_manager::CredentialInfo&)> callback) | 52 const CredentialsCallback& callback) override; |
53 override; | |
54 void AutomaticPasswordSave(scoped_ptr<password_manager::PasswordFormManager> | 53 void AutomaticPasswordSave(scoped_ptr<password_manager::PasswordFormManager> |
55 saved_form_manager) override; | 54 saved_form_manager) override; |
56 bool IsOffTheRecord() const override; | 55 bool IsOffTheRecord() const override; |
57 PrefService* GetPrefs() override; | 56 PrefService* GetPrefs() override; |
58 password_manager::PasswordStore* GetPasswordStore() const override; | 57 password_manager::PasswordStore* GetPasswordStore() const override; |
59 void NotifyUserAutoSignin(ScopedVector<autofill::PasswordForm> local_forms, | 58 void NotifyUserAutoSignin(ScopedVector<autofill::PasswordForm> local_forms, |
60 const GURL& origin) override; | 59 const GURL& origin) override; |
61 void NotifyUserCouldBeAutoSignedIn( | 60 void NotifyUserCouldBeAutoSignedIn( |
62 scoped_ptr<autofill::PasswordForm> form) override; | 61 scoped_ptr<autofill::PasswordForm> form) override; |
63 void NotifySuccessfulLoginWithExistingPassword( | 62 void NotifySuccessfulLoginWithExistingPassword( |
(...skipping 10 matching lines...) Expand all Loading... |
74 // The preference associated with | 73 // The preference associated with |
75 // password_manager::prefs::kPasswordManagerSavingEnabled. | 74 // password_manager::prefs::kPasswordManagerSavingEnabled. |
76 BooleanPrefMember saving_passwords_enabled_; | 75 BooleanPrefMember saving_passwords_enabled_; |
77 | 76 |
78 const password_manager::SyncCredentialsFilter credentials_filter_; | 77 const password_manager::SyncCredentialsFilter credentials_filter_; |
79 | 78 |
80 DISALLOW_COPY_AND_ASSIGN(IOSChromePasswordManagerClient); | 79 DISALLOW_COPY_AND_ASSIGN(IOSChromePasswordManagerClient); |
81 }; | 80 }; |
82 | 81 |
83 #endif // IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 82 #endif // IOS_CHROME_BROWSER_PASSWORDS_IOS_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
OLD | NEW |