Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: ios/public/provider/chrome/browser/browser_state/chrome_browser_state_manager.h

Issue 1554683003: Preparation for removal of ChromeBrowserStateManager::Shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698