summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/profiles/incognito_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/profiles/incognito_helpers.h')
-rw-r--r--chromium/chrome/browser/profiles/incognito_helpers.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/chromium/chrome/browser/profiles/incognito_helpers.h b/chromium/chrome/browser/profiles/incognito_helpers.h
new file mode 100644
index 00000000000..e8e76ce5b95
--- /dev/null
+++ b/chromium/chrome/browser/profiles/incognito_helpers.h
@@ -0,0 +1,29 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_
+#define CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_
+
+namespace content {
+class BrowserContext;
+}
+
+namespace chrome {
+
+// Returns the original browser context even for Incognito contexts.
+content::BrowserContext* GetBrowserContextRedirectedInIncognito(
+ content::BrowserContext* context);
+
+// Returns the original browser context even for Incognito contexts.
+const content::BrowserContext* GetBrowserContextRedirectedInIncognito(
+ const content::BrowserContext* context);
+
+// Returns non-NULL even for Incognito contexts so that a separate
+// instance of a service is created for the Incognito context.
+content::BrowserContext* GetBrowserContextOwnInstanceInIncognito(
+ content::BrowserContext* context);
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_