summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_manager_delegate.h
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-13 20:27:03 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-13 20:27:03 +0000
commit6bb2d378c1055e87cc53b4bef1de9ce14fd1a6a8 (patch)
tree3993b7a63cae3b029f071e5d1779206b3ae20ebc /chrome/browser/autofill/autofill_manager_delegate.h
parentb01b30641643b4d4f2ddb35e4c6e3f52418737d2 (diff)
downloadchromium_src-6bb2d378c1055e87cc53b4bef1de9ce14fd1a6a8.zip
chromium_src-6bb2d378c1055e87cc53b4bef1de9ce14fd1a6a8.tar.gz
chromium_src-6bb2d378c1055e87cc53b4bef1de9ce14fd1a6a8.tar.bz2
Use BrowserContext as key in API. Switch Autofill to use BC in place of Profile.
All that Autofill needed from Profile, apart from looking up services keyed on Profile, was stuff already in BrowserContext e.g. IsIncognitoMode(). Once a base class for ProfileSyncService migrates to API, we should be able to remove the profile.h includes in Autofill. TBR=mechanicalowners@chromium.org BUG=140037 Review URL: https://chromiumcodereview.appspot.com/10919066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156620 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_manager_delegate.h')
-rw-r--r--chrome/browser/autofill/autofill_manager_delegate.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/autofill/autofill_manager_delegate.h b/chrome/browser/autofill/autofill_manager_delegate.h
index 1bd95ba..915354b 100644
--- a/chrome/browser/autofill/autofill_manager_delegate.h
+++ b/chrome/browser/autofill/autofill_manager_delegate.h
@@ -9,6 +9,10 @@ namespace autofill {
class PasswordGenerator;
}
+namespace content {
+class BrowserContext;
+}
+
namespace gfx {
class Rect;
}
@@ -36,6 +40,13 @@ class AutofillManagerDelegate {
public:
virtual ~AutofillManagerDelegate() {}
+ // Gets the BrowserContext the AutofillManager is in.
+ virtual content::BrowserContext* GetBrowserContext() const = 0;
+
+ // Gets the BrowserContext the AutofillManager is in, or if in an
+ // incognito mode, the associated (original) BrowserContext.
+ virtual content::BrowserContext* GetOriginalBrowserContext() const = 0;
+
// Gets the infobar service associated with the delegate.
virtual InfoBarService* GetInfoBarService() = 0;