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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class ChromeBrowserStateManager { | 25 class ChromeBrowserStateManager { |
26 public: | 26 public: |
27 virtual ~ChromeBrowserStateManager() {} | 27 virtual ~ChromeBrowserStateManager() {} |
28 | 28 |
29 // Returns the ChromeBrowserState that was last used, creating one if | 29 // Returns the ChromeBrowserState that was last used, creating one if |
30 // necessary. | 30 // necessary. |
31 virtual ChromeBrowserState* GetLastUsedBrowserState() = 0; | 31 virtual ChromeBrowserState* GetLastUsedBrowserState() = 0; |
32 | 32 |
33 // Returns the ChromeBrowserState associated with |path|, creating one if | 33 // Returns the ChromeBrowserState associated with |path|, creating one if |
34 // necessary. | 34 // necessary. |
35 virtual ChromeBrowserState* GetChromeBrowserState( | 35 virtual ChromeBrowserState* GetBrowserState(const base::FilePath& path) = 0; |
36 const base::FilePath& path) = 0; | |
37 | 36 |
38 // Returns the BrowserStateInfoCache associated with this manager. | 37 // Returns the BrowserStateInfoCache associated with this manager. |
39 virtual BrowserStateInfoCache* GetBrowserStateInfoCache() = 0; | 38 virtual BrowserStateInfoCache* GetBrowserStateInfoCache() = 0; |
40 | 39 |
41 // Returns the list of loaded ChromeBrowserStates. | 40 // Returns the list of loaded ChromeBrowserStates. |
42 virtual std::vector<ChromeBrowserState*> GetLoadedChromeBrowserStates() = 0; | 41 virtual std::vector<ChromeBrowserState*> GetLoadedBrowserStates() = 0; |
43 | 42 |
44 protected: | 43 protected: |
45 ChromeBrowserStateManager() {} | 44 ChromeBrowserStateManager() {} |
46 | 45 |
47 private: | 46 private: |
48 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateManager); | 47 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateManager); |
49 }; | 48 }; |
50 | 49 |
51 } // namespace ios | 50 } // namespace ios |
52 | 51 |
53 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE
_MANAGER_H_ | 52 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE
_MANAGER_H_ |
OLD | NEW |