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

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

Issue 10919066: Use BrowserContext as key in API. Switch Autofill to use BC in place of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to parent 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 1bd95badebf58f332668c15e1e2051924f209afb..915354b7b7d3584d35a7915bb2b5fb037072c68c 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;
« 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