Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ios / public / provider / chrome / browser / browser_state / chrome_browser_state_manager.h
blob86f9c9761634dc03e68d9ea3d11c64635eede838
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"
12 namespace base {
13 class FilePath;
16 namespace ios {
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 {
24 public:
25 virtual ~ChromeBrowserStateManager() {}
27 // Returns the ChromeBrowserState that was last used, creating one if
28 // necessary.
29 virtual ChromeBrowserState* GetLastUsedBrowserState() = 0;
31 // Returns the ChromeBrowserState associated with |path|, creating one if
32 // necessary.
33 virtual ChromeBrowserState* GetChromeBrowserState(
34 const base::FilePath& path) = 0;
36 // Returns the BrowserStateInfoCache associated with this manager.
37 virtual BrowserStateInfoCache* GetBrowserStateInfoCache() = 0;
39 protected:
40 ChromeBrowserStateManager() {}
42 private:
43 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateManager);
46 } // namespace ios
48 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MANAGER_H_