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

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

Issue 10910071: Extract abstract base to API directory for ProfileSyncService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More unit test fixes. Created 8 years, 3 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
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/autofill_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager_delegate.h
diff --git a/chrome/browser/autofill/autofill_manager_delegate.h b/chrome/browser/autofill/autofill_manager_delegate.h
index 915354b7b7d3584d35a7915bb2b5fb037072c68c..dda8bfe33287bd8a0366ff724b2beb71aca29648 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;
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698