diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-19 17:46:10 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-19 17:46:10 +0000 |
commit | e6cb45bdc2beee03689469f0c6038a7e0b353d1d (patch) | |
tree | 989249e2320ae55ee8962447a80e62779439211e /chrome/browser/autofill/autofill_manager_delegate.h | |
parent | 60054f2fbef18552b834623a70b60654fd668d6f (diff) | |
download | chromium_src-e6cb45bdc2beee03689469f0c6038a7e0b353d1d.zip chromium_src-e6cb45bdc2beee03689469f0c6038a7e0b353d1d.tar.gz chromium_src-e6cb45bdc2beee03689469f0c6038a7e0b353d1d.tar.bz2 |
Extract abstract base to API directory for ProfileSyncService.
Move ProfileSyncServiceObserver to API directory.
Use these to break Autofill's concrete dependency on ProfileSyncService.
Remove last usages of Profile in Autofill code (modulo usage in one file that I expect will be moved to chrome/browser/configuration).
TBR=ben@chromium.org,mechanicalowners@chromium.org
BUG=140037
Review URL: https://chromiumcodereview.appspot.com/10910071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157563 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_manager_delegate.h')
-rw-r--r-- | chrome/browser/autofill/autofill_manager_delegate.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/chrome/browser/autofill/autofill_manager_delegate.h b/chrome/browser/autofill/autofill_manager_delegate.h index 915354b..dda8bfe 100644 --- a/chrome/browser/autofill/autofill_manager_delegate.h +++ b/chrome/browser/autofill/autofill_manager_delegate.h @@ -25,6 +25,8 @@ struct PasswordForm; class InfoBarService; class PrefServiceBase; +class Profile; +class ProfileSyncServiceBase; namespace autofill { @@ -40,19 +42,26 @@ class AutofillManagerDelegate { public: virtual ~AutofillManagerDelegate() {} - // Gets the BrowserContext the AutofillManager is in. + // Gets the BrowserContext associated with the delegate. virtual content::BrowserContext* GetBrowserContext() const = 0; - // Gets the BrowserContext the AutofillManager is in, or if in an + // Gets the BrowserContext associated with the delegate, or if in an // incognito mode, the associated (original) BrowserContext. virtual content::BrowserContext* GetOriginalBrowserContext() const = 0; + // TODO(joi): Remove, this is temporary. + virtual Profile* GetOriginalProfile() const = 0; + // Gets the infobar service associated with the delegate. virtual InfoBarService* GetInfoBarService() = 0; // Gets the preferences associated with the delegate. virtual PrefServiceBase* GetPrefs() = 0; + // Gets the profile sync service associated with the delegate. Will + // be NULL if sync is not enabled. + virtual ProfileSyncServiceBase* GetProfileSyncService() = 0; + // Returns true if saving passwords is currently enabled for the // delegate. virtual bool IsSavingPasswordsEnabled() const = 0; |