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_password_manager_d
river.h" | 10 #include "components/password_manager/content/browser/content_password_manager_d
river.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 virtual ~ChromePasswordManagerClient(); | 39 virtual ~ChromePasswordManagerClient(); |
40 | 40 |
41 // PasswordManagerClient implementation. | 41 // PasswordManagerClient implementation. |
42 virtual bool IsAutomaticPasswordSavingEnabled() const OVERRIDE; | 42 virtual bool IsAutomaticPasswordSavingEnabled() const OVERRIDE; |
43 virtual bool IsPasswordManagerEnabledForCurrentPage() const OVERRIDE; | 43 virtual bool IsPasswordManagerEnabledForCurrentPage() const OVERRIDE; |
44 virtual bool ShouldFilterAutofillResult( | 44 virtual bool ShouldFilterAutofillResult( |
45 const autofill::PasswordForm& form) OVERRIDE; | 45 const autofill::PasswordForm& form) OVERRIDE; |
46 virtual bool IsSyncAccountCredential( | 46 virtual bool IsSyncAccountCredential( |
47 const std::string& username, const std::string& origin) const OVERRIDE; | 47 const std::string& username, const std::string& origin) const OVERRIDE; |
48 virtual void AutofillResultsComputed() OVERRIDE; | 48 virtual void AutofillResultsComputed() OVERRIDE; |
49 virtual void PromptUserToSavePassword( | 49 virtual bool PromptUserToSavePassword( |
50 scoped_ptr<password_manager::PasswordFormManager> form_to_save) OVERRIDE; | 50 scoped_ptr<password_manager::PasswordFormManager> form_to_save) OVERRIDE; |
51 virtual void AutomaticPasswordSave( | 51 virtual void AutomaticPasswordSave( |
52 scoped_ptr<password_manager::PasswordFormManager> saved_form_manager) | 52 scoped_ptr<password_manager::PasswordFormManager> saved_form_manager) |
53 OVERRIDE; | 53 OVERRIDE; |
54 virtual void PasswordWasAutofilled( | 54 virtual void PasswordWasAutofilled( |
55 const autofill::PasswordFormMap& best_matches) const OVERRIDE; | 55 const autofill::PasswordFormMap& best_matches) const OVERRIDE; |
56 virtual void PasswordAutofillWasBlocked( | 56 virtual void PasswordAutofillWasBlocked( |
57 const autofill::PasswordFormMap& best_matches) const OVERRIDE; | 57 const autofill::PasswordFormMap& best_matches) const OVERRIDE; |
58 virtual void AuthenticateAutofillAndFillForm( | 58 virtual void AuthenticateAutofillAndFillForm( |
59 scoped_ptr<autofill::PasswordFormFillData> fill_data) OVERRIDE; | 59 scoped_ptr<autofill::PasswordFormFillData> fill_data) OVERRIDE; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // reporting. | 178 // reporting. |
179 bool sync_credential_was_filtered_; | 179 bool sync_credential_was_filtered_; |
180 | 180 |
181 // Allows authentication callbacks to be destroyed when this client is gone. | 181 // Allows authentication callbacks to be destroyed when this client is gone. |
182 base::WeakPtrFactory<ChromePasswordManagerClient> weak_factory_; | 182 base::WeakPtrFactory<ChromePasswordManagerClient> weak_factory_; |
183 | 183 |
184 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 184 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
185 }; | 185 }; |
186 | 186 |
187 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 187 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
OLD | NEW |