Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ios / public / provider / chrome / browser / browser_state / chrome_browser_state_manager.h
blob5b9da1534e6f14453a0c10c2a85ca4312f3b99ec
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"
11 namespace base {
12 class FilePath;
15 namespace ios {
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 {
23 public:
24 virtual ~ChromeBrowserStateManager() {}
26 // Returns the ChromeBrowserState that was last used, creating one if
27 // necessary.
28 virtual ChromeBrowserState* GetLastUsedBrowserState() = 0;
30 // Returns the ChromeBrowserState associated with |path|, creating one if
31 // necessary.
32 virtual ChromeBrowserState* GetChromeBrowserState(
33 const base::FilePath& path) = 0;
35 // Returns the BrowserStateInfoCache associated with this manager.
36 virtual BrowserStateInfoCache* GetBrowserStateInfoCache() = 0;
38 protected:
39 ChromeBrowserStateManager() {}
41 private:
42 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateManager);
45 } // namespace ios
47 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MANAGER_H_