1 // Copyright 2014 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.
5 #ifndef IOS_CHROME_BROWSER_BROWSER_STATE_BROWSER_STATE_OTR_HELPER_H_
6 #define IOS_CHROME_BROWSER_BROWSER_STATE_BROWSER_STATE_OTR_HELPER_H_
12 // Returns the original BrowserState even for incognito states.
13 web::BrowserState
* GetBrowserStateRedirectedInIncognito(
14 web::BrowserState
* browser_state
);
16 // Returns non-null BrowserState even for Incognito contexts so that a
17 // separate instance of a service is created for the Incognito context.
18 web::BrowserState
* GetBrowserStateOwnInstanceInIncognito(
19 web::BrowserState
* browser_state
);
21 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_BROWSER_STATE_OTR_HELPER_H_