| Index: chrome/browser/password_manager/password_manager_delegate_impl.h
|
| diff --git a/chrome/browser/password_manager/password_manager_delegate_impl.h b/chrome/browser/password_manager/password_manager_delegate_impl.h
|
| index 66134b2efd2ce3e5476ce00d030388f2692a8eac..717802e373de48115c2950c300d90c99849c5a58 100644
|
| --- a/chrome/browser/password_manager/password_manager_delegate_impl.h
|
| +++ b/chrome/browser/password_manager/password_manager_delegate_impl.h
|
| @@ -11,6 +11,9 @@
|
| #include "chrome/browser/password_manager/password_manager_delegate.h"
|
| #include "content/public/browser/web_contents_user_data.h"
|
|
|
| +class PasswordGenerationManager;
|
| +class PasswordManager;
|
| +
|
| namespace content {
|
| class WebContents;
|
| }
|
| @@ -27,6 +30,17 @@ class PasswordManagerDelegateImpl
|
| virtual Profile* GetProfile() OVERRIDE;
|
| virtual PasswordManagerDriver* GetDriver() OVERRIDE;
|
|
|
| + // Convenience method to allow //chrome code easy access to a PasswordManager
|
| + // from a WebContents instance.
|
| + static PasswordManager* GetManagerFromWebContents(
|
| + content::WebContents* contents);
|
| +
|
| + // Convenience method to allow //chrome code easy access to a
|
| + // PasswordGenerationManager
|
| + // from a WebContents instance.
|
| + static PasswordGenerationManager* GetGenerationManagerFromWebContents(
|
| + content::WebContents* contents);
|
| +
|
| private:
|
| explicit PasswordManagerDelegateImpl(content::WebContents* web_contents);
|
| friend class content::WebContentsUserData<PasswordManagerDelegateImpl>;
|
|
|