| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 AutofillForSyncCredentialsState autofill_sync_state_; | 165 AutofillForSyncCredentialsState autofill_sync_state_; |
| 162 | 166 |
| 163 // If the sync credential was filtered during autofill. Used for statistics | 167 // If the sync credential was filtered during autofill. Used for statistics |
| 164 // reporting. | 168 // reporting. |
| 165 bool sync_credential_was_filtered_; | 169 bool sync_credential_was_filtered_; |
| 166 | 170 |
| 167 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 171 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 168 }; | 172 }; |
| 169 | 173 |
| 170 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 174 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |