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 non-NULL even for Incognito contexts so that a separate 19 // instance of a service is created for the Incognito context. 20 content::BrowserContext* GetBrowserContextOwnInstanceInIncognito( 21 content::BrowserContext* context); 22 23 } // namespace chrome 24 25 #endif // CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_ 26