Chromium Code Reviews| 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 "chrome/common/chrome_switches.h" | |
|
vabr (Chromium)
2014/04/29 09:08:26
Please do not include files which you don't need:
rchtara
2014/04/29 12:20:08
Done.
| |
| 10 #include "components/password_manager/content/browser/content_password_manager_d river.h" | 11 #include "components/password_manager/content/browser/content_password_manager_d river.h" |
| 11 #include "components/password_manager/core/browser/password_manager_client.h" | 12 #include "components/password_manager/core/browser/password_manager_client.h" |
| 12 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
| 13 #include "content/public/browser/web_contents_user_data.h" | 14 #include "content/public/browser/web_contents_user_data.h" |
| 14 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 15 | 16 |
| 16 class Profile; | 17 class Profile; |
| 17 | 18 |
| 18 namespace autofill { | 19 namespace autofill { |
| 19 class PasswordGenerationPopupObserver; | 20 class PasswordGenerationPopupObserver; |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 31 | 32 |
| 32 // ChromePasswordManagerClient implements the PasswordManagerClient interface. | 33 // ChromePasswordManagerClient implements the PasswordManagerClient interface. |
| 33 class ChromePasswordManagerClient | 34 class ChromePasswordManagerClient |
| 34 : public password_manager::PasswordManagerClient, | 35 : public password_manager::PasswordManagerClient, |
| 35 public content::WebContentsObserver, | 36 public content::WebContentsObserver, |
| 36 public content::WebContentsUserData<ChromePasswordManagerClient> { | 37 public content::WebContentsUserData<ChromePasswordManagerClient> { |
| 37 public: | 38 public: |
| 38 virtual ~ChromePasswordManagerClient(); | 39 virtual ~ChromePasswordManagerClient(); |
| 39 | 40 |
| 40 // PasswordManagerClient implementation. | 41 // PasswordManagerClient implementation. |
| 42 virtual bool IsAutomaticPasswordSavingEnabled() const OVERRIDE; | |
| 41 virtual void PromptUserToSavePassword( | 43 virtual void PromptUserToSavePassword( |
| 42 password_manager::PasswordFormManager* form_to_save) OVERRIDE; | 44 password_manager::PasswordFormManager* form_to_save) OVERRIDE; |
| 43 virtual void PasswordWasAutofilled( | 45 virtual void PasswordWasAutofilled( |
| 44 const autofill::PasswordFormMap& best_matches) const OVERRIDE; | 46 const autofill::PasswordFormMap& best_matches) const OVERRIDE; |
| 45 virtual void PasswordAutofillWasBlocked() const OVERRIDE; | 47 virtual void PasswordAutofillWasBlocked() const OVERRIDE; |
| 46 virtual void AuthenticateAutofillAndFillForm( | 48 virtual void AuthenticateAutofillAndFillForm( |
| 47 scoped_ptr<autofill::PasswordFormFillData> fill_data) OVERRIDE; | 49 scoped_ptr<autofill::PasswordFormFillData> fill_data) OVERRIDE; |
| 48 virtual PrefService* GetPrefs() OVERRIDE; | 50 virtual PrefService* GetPrefs() OVERRIDE; |
| 49 virtual password_manager::PasswordStore* GetPasswordStore() OVERRIDE; | 51 virtual password_manager::PasswordStore* GetPasswordStore() OVERRIDE; |
| 50 virtual password_manager::PasswordManagerDriver* GetDriver() OVERRIDE; | 52 virtual password_manager::PasswordManagerDriver* GetDriver() OVERRIDE; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 115 | 117 |
| 116 // Points to an active logger instance to use for, e.g., reporting progress on | 118 // Points to an active logger instance to use for, e.g., reporting progress on |
| 117 // saving passwords. If there is no active logger (most of the time), the | 119 // saving passwords. If there is no active logger (most of the time), the |
| 118 // pointer will be NULL. | 120 // pointer will be NULL. |
| 119 password_manager::PasswordManagerLogger* logger_; | 121 password_manager::PasswordManagerLogger* logger_; |
| 120 | 122 |
| 121 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); | 123 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); |
| 122 }; | 124 }; |
| 123 | 125 |
| 124 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ | 126 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ |
| OLD | NEW |