Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3747)

Unified Diff: chrome/browser/password_manager/password_manager_delegate_impl.h

Issue 151413008: Move ownership of Password(Generation)Manager to ContentPasswordDriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle WebContents having no PasswordManagerDelegateImpl attached Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>;
« no previous file with comments | « chrome/browser/password_manager/password_manager.cc ('k') | chrome/browser/password_manager/password_manager_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698