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

Unified Diff: chrome/browser/autofill/autofill_manager.h

Issue 10837363: Introduce AutofillClient and use it to get rid of PasswordManager dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix header Created 8 years, 4 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/autofill/autofill_manager.h
diff --git a/chrome/browser/autofill/autofill_manager.h b/chrome/browser/autofill/autofill_manager.h
index f2db3cef0d8a0b9ab9d988f81ffa1fa0e62ff732..eb46bf98d4c1bdbfa09aadf7ff690fd263b8b74c 100644
--- a/chrome/browser/autofill/autofill_manager.h
+++ b/chrome/browser/autofill/autofill_manager.h
@@ -41,6 +41,7 @@ class TabContents;
struct ViewHostMsg_FrameNavigate_Params;
namespace autofill {
+class AutofillManagerDelegate;
class PasswordGenerator;
}
@@ -73,7 +74,10 @@ class AutofillManager : public content::NotificationObserver,
public ProfileSyncServiceObserver,
public base::RefCounted<AutofillManager> {
public:
- explicit AutofillManager(TabContents* tab_contents);
+ // Lifetime of |client| and |tab_contents| must exceed lifetime of
+ // AutofillManager.
+ explicit AutofillManager(autofill::AutofillManagerDelegate* delegate,
+ TabContents* tab_contents);
// Registers our Enable/Disable Autofill pref.
static void RegisterUserPrefs(PrefServiceBase* prefs);
@@ -117,7 +121,8 @@ class AutofillManager : public content::NotificationObserver,
typedef std::pair<std::string, size_t> GUIDPair;
// Test code should prefer to use this constructor.
- AutofillManager(TabContents* tab_contents,
+ AutofillManager(autofill::AutofillManagerDelegate* delegate,
+ TabContents* tab_contents,
PersonalDataManager* personal_data);
// Returns the value of the AutofillEnabled pref.
@@ -321,6 +326,8 @@ class AutofillManager : public content::NotificationObserver,
void SendAutofillTypePredictions(
const std::vector<FormStructure*>& forms) const;
+ autofill::AutofillManagerDelegate* const manager_delegate_;
+
// The owning TabContents.
TabContents* tab_contents_;
« no previous file with comments | « chrome/browser/autofill/autofill_external_delegate_unittest.cc ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698