| 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 25 matching lines...) Expand all Loading... |
| 36 public content::WebContentsUserData<ChromePasswordManagerClient> { | 36 public content::WebContentsUserData<ChromePasswordManagerClient> { |
| 37 public: | 37 public: |
| 38 virtual ~ChromePasswordManagerClient(); | 38 virtual ~ChromePasswordManagerClient(); |
| 39 | 39 |
| 40 // PasswordManagerClient implementation. | 40 // PasswordManagerClient implementation. |
| 41 virtual bool IsAutomaticPasswordSavingEnabled() const OVERRIDE; | 41 virtual bool IsAutomaticPasswordSavingEnabled() const OVERRIDE; |
| 42 virtual bool IsPasswordManagerEnabledForCurrentPage() const OVERRIDE; | 42 virtual bool IsPasswordManagerEnabledForCurrentPage() const OVERRIDE; |
| 43 virtual bool IsSyncAccountCredential( | 43 virtual bool IsSyncAccountCredential( |
| 44 const std::string& username, const std::string& origin) const OVERRIDE; | 44 const std::string& username, const std::string& origin) const OVERRIDE; |
| 45 virtual void PromptUserToSavePassword( | 45 virtual void PromptUserToSavePassword( |
| 46 password_manager::PasswordFormManager* form_to_save) OVERRIDE; | 46 scoped_ptr<password_manager::PasswordFormManager> form_to_save) OVERRIDE; |
| 47 virtual void AutomaticPasswordSave( |
| 48 scoped_ptr<password_manager::PasswordFormManager> saved_form_manager) |
| 49 OVERRIDE; |
| 47 virtual void PasswordWasAutofilled( | 50 virtual void PasswordWasAutofilled( |
| 48 const autofill::PasswordFormMap& best_matches) const OVERRIDE; | 51 const autofill::PasswordFormMap& best_matches) const OVERRIDE; |
| 49 virtual void PasswordAutofillWasBlocked( | 52 virtual void PasswordAutofillWasBlocked( |
| 50 const autofill::PasswordFormMap& best_matches) const OVERRIDE; | 53 const autofill::PasswordFormMap& best_matches) const OVERRIDE; |
| 51 virtual void AuthenticateAutofillAndFillForm( | 54 virtual void AuthenticateAutofillAndFillForm( |
| 52 scoped_ptr<autofill::PasswordFormFillData> fill_data) OVERRIDE; | 55 scoped_ptr<autofill::PasswordFormFillData> fill_data) OVERRIDE; |
| 53 virtual PrefService* GetPrefs() OVERRIDE; | 56 virtual PrefService* GetPrefs() OVERRIDE; |
| 54 virtual password_manager::PasswordStore* GetPasswordStore() OVERRIDE; | 57 virtual password_manager::PasswordStore* GetPasswordStore() OVERRIDE; |
| 55 virtual password_manager::PasswordManagerDriver* GetDriver() OVERRIDE; | 58 virtual password_manager::PasswordManagerDriver* GetDriver() OVERRIDE; |
| 56 virtual base::FieldTrial::Probability GetProbabilityForExperiment( | 59 virtual base::FieldTrial::Probability GetProbabilityForExperiment( |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // Allows authentication callbacks to be destroyed when this client is gone. | 136 // Allows authentication callbacks to be destroyed when this client is gone. |
| 134 base::WeakPtrFactory<ChromePasswordManagerClient> weak_factory_; | 137 base::WeakPtrFactory<ChromePasswordManagerClient> weak_factory_; |
| 135 | 138 |
| 136 // True if |this| is registered with some LogRouter which can accept logs. | 139 // True if |this| is registered with some LogRouter which can accept logs. |
| 137 bool can_use_log_router_; | 140 bool can_use_log_router_; |
| 138 | 141 |
| 139 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 142 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 140 }; | 143 }; |
| 141 | 144 |
| 142 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 145 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |