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.
5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MANAGER_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MANAGER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
17 class BrowserStateInfoCache
;
18 class ChromeBrowserState
;
20 // Provides methods that allow for various ways of creating non-incognito
21 // ChromeBrowserState instances. Owns all instances that it creates.
22 class ChromeBrowserStateManager
{
24 virtual ~ChromeBrowserStateManager() {}
26 // Returns the ChromeBrowserState that was last used, creating one if
28 virtual ChromeBrowserState
* GetLastUsedBrowserState() = 0;
30 // Returns the ChromeBrowserState associated with |path|, creating one if
32 virtual ChromeBrowserState
* GetChromeBrowserState(
33 const base::FilePath
& path
) = 0;
35 // Returns the BrowserStateInfoCache associated with this manager.
36 virtual BrowserStateInfoCache
* GetBrowserStateInfoCache() = 0;
39 ChromeBrowserStateManager() {}
42 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateManager
);
47 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MANAGER_H_