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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "components/password_manager/content/browser/content_credential_manager
_dispatcher.h" | 10 #include "components/password_manager/content/browser/content_credential_manager
_dispatcher.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // PasswordManagerClient implementation. | 42 // PasswordManagerClient implementation. |
43 bool IsAutomaticPasswordSavingEnabled() const override; | 43 bool IsAutomaticPasswordSavingEnabled() const override; |
44 bool IsPasswordManagerEnabledForCurrentPage() const override; | 44 bool IsPasswordManagerEnabledForCurrentPage() const override; |
45 bool ShouldFilterAutofillResult(const autofill::PasswordForm& form) override; | 45 bool ShouldFilterAutofillResult(const autofill::PasswordForm& form) override; |
46 std::string GetSyncUsername() const override; | 46 std::string GetSyncUsername() const override; |
47 bool IsSyncAccountCredential(const std::string& username, | 47 bool IsSyncAccountCredential(const std::string& username, |
48 const std::string& origin) const override; | 48 const std::string& origin) const override; |
49 void AutofillResultsComputed() override; | 49 void AutofillResultsComputed() override; |
50 bool PromptUserToSavePassword( | 50 bool PromptUserToSavePassword( |
51 scoped_ptr<password_manager::PasswordFormManager> form_to_save) override; | 51 scoped_ptr<password_manager::PasswordFormManager> form_to_save) override; |
| 52 bool PromptUserToChooseCredentials( |
| 53 const std::vector<autofill::PasswordForm*>& forms, |
| 54 base::Callback<void(const password_manager::CredentialInfo&)> |
| 55 callback) override; |
52 void AutomaticPasswordSave(scoped_ptr<password_manager::PasswordFormManager> | 56 void AutomaticPasswordSave(scoped_ptr<password_manager::PasswordFormManager> |
53 saved_form_manager) override; | 57 saved_form_manager) override; |
54 void PasswordWasAutofilled( | 58 void PasswordWasAutofilled( |
55 const autofill::PasswordFormMap& best_matches) const override; | 59 const autofill::PasswordFormMap& best_matches) const override; |
56 void PasswordAutofillWasBlocked( | 60 void PasswordAutofillWasBlocked( |
57 const autofill::PasswordFormMap& best_matches) const override; | 61 const autofill::PasswordFormMap& best_matches) const override; |
58 PrefService* GetPrefs() override; | 62 PrefService* GetPrefs() override; |
59 password_manager::PasswordStore* GetPasswordStore() override; | 63 password_manager::PasswordStore* GetPasswordStore() override; |
60 password_manager::PasswordManagerDriver* GetDriver() override; | 64 password_manager::PasswordManagerDriver* GetDriver() override; |
61 base::FieldTrial::Probability GetProbabilityForExperiment( | 65 base::FieldTrial::Probability GetProbabilityForExperiment( |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 AutofillForSyncCredentialsState autofill_sync_state_; | 166 AutofillForSyncCredentialsState autofill_sync_state_; |
163 | 167 |
164 // If the sync credential was filtered during autofill. Used for statistics | 168 // If the sync credential was filtered during autofill. Used for statistics |
165 // reporting. | 169 // reporting. |
166 bool sync_credential_was_filtered_; | 170 bool sync_credential_was_filtered_; |
167 | 171 |
168 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 172 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
169 }; | 173 }; |
170 | 174 |
171 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 175 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
OLD | NEW |