| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MA
NAGER_H_ | 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MA
NAGER_H_ |
| 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MA
NAGER_H_ | 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MA
NAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class ChromeBrowserState; | 21 class ChromeBrowserState; |
| 22 | 22 |
| 23 // Provides methods that allow for various ways of creating non-incognito | 23 // Provides methods that allow for various ways of creating non-incognito |
| 24 // ChromeBrowserState instances. Owns all instances that it creates. | 24 // ChromeBrowserState instances. Owns all instances that it creates. |
| 25 class ChromeBrowserStateManager { | 25 class ChromeBrowserStateManager { |
| 26 public: | 26 public: |
| 27 virtual ~ChromeBrowserStateManager() {} | 27 virtual ~ChromeBrowserStateManager() {} |
| 28 | 28 |
| 29 // Temporary method to help migrating from ProfileManager to | 29 // Temporary method to help migrating from ProfileManager to |
| 30 // ChromeBrowserStateManager. | 30 // ChromeBrowserStateManager. |
| 31 virtual void ShutDown() = 0; | 31 virtual void ShutDown() {} |
| 32 | 32 |
| 33 // Returns the ChromeBrowserState that was last used, creating one if | 33 // Returns the ChromeBrowserState that was last used, creating one if |
| 34 // necessary. | 34 // necessary. |
| 35 virtual ChromeBrowserState* GetLastUsedBrowserState() = 0; | 35 virtual ChromeBrowserState* GetLastUsedBrowserState() = 0; |
| 36 | 36 |
| 37 // Returns the ChromeBrowserState associated with |path|, creating one if | 37 // Returns the ChromeBrowserState associated with |path|, creating one if |
| 38 // necessary. | 38 // necessary. |
| 39 virtual ChromeBrowserState* GetBrowserState(const base::FilePath& path) = 0; | 39 virtual ChromeBrowserState* GetBrowserState(const base::FilePath& path) = 0; |
| 40 | 40 |
| 41 // Returns the BrowserStateInfoCache associated with this manager. | 41 // Returns the BrowserStateInfoCache associated with this manager. |
| 42 virtual BrowserStateInfoCache* GetBrowserStateInfoCache() = 0; | 42 virtual BrowserStateInfoCache* GetBrowserStateInfoCache() = 0; |
| 43 | 43 |
| 44 // Returns the list of loaded ChromeBrowserStates. | 44 // Returns the list of loaded ChromeBrowserStates. |
| 45 virtual std::vector<ChromeBrowserState*> GetLoadedBrowserStates() = 0; | 45 virtual std::vector<ChromeBrowserState*> GetLoadedBrowserStates() = 0; |
| 46 | 46 |
| 47 protected: | 47 protected: |
| 48 ChromeBrowserStateManager() {} | 48 ChromeBrowserStateManager() {} |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateManager); | 51 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateManager); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace ios | 54 } // namespace ios |
| 55 | 55 |
| 56 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE
_MANAGER_H_ | 56 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE
_MANAGER_H_ |
| OLD | NEW |