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"
10 #include "base/memory/scoped_vector.h"
18 class BrowserStateInfoCache
;
19 class ChromeBrowserState
;
21 // Provides methods that allow for various ways of creating non-incognito
22 // ChromeBrowserState instances. Owns all instances that it creates.
23 class ChromeBrowserStateManager
{
25 virtual ~ChromeBrowserStateManager() {}
27 // Returns the ChromeBrowserState that was last used, creating one if
29 virtual ChromeBrowserState
* GetLastUsedBrowserState() = 0;
31 // Returns the ChromeBrowserState associated with |path|, creating one if
33 virtual ChromeBrowserState
* GetChromeBrowserState(
34 const base::FilePath
& path
) = 0;
36 // Returns the BrowserStateInfoCache associated with this manager.
37 virtual BrowserStateInfoCache
* GetBrowserStateInfoCache() = 0;
40 ChromeBrowserStateManager() {}
43 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateManager
);
48 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MANAGER_H_