1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_
6 #define CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_
7 
8 namespace content {
9 class BrowserContext;
10 }
11 
12 namespace chrome {
13 
14 // Returns the original browser context even for Incognito contexts.
15 content::BrowserContext* GetBrowserContextRedirectedInIncognito(
16     content::BrowserContext* context);
17 
18 // Returns the original browser context even for Incognito contexts.
19 const content::BrowserContext* GetBrowserContextRedirectedInIncognito(
20     const content::BrowserContext* context);
21 
22 // Returns non-NULL even for Incognito contexts so that a separate
23 // instance of a service is created for the Incognito context.
24 content::BrowserContext* GetBrowserContextOwnInstanceInIncognito(
25     content::BrowserContext* context);
26 
27 }  // namespace chrome
28 
29 #endif  // CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_
30