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

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

Issue 1556493002: Remove now obsolete Shutdown method of ChromeBrowserStateManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome_browser_provider
Patch Set: Rebase on https://codereview.chromium.org/1554683003 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 | « ios/chrome/browser/application_context_impl.cc ('k') | 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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 12
13 namespace base { 13 namespace base {
14 class FilePath; 14 class FilePath;
15 } 15 }
16 16
17 class BrowserStateInfoCache; 17 class BrowserStateInfoCache;
18 18
19 namespace ios { 19 namespace ios {
20 20
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
30 // ChromeBrowserStateManager.
31 virtual void ShutDown() {}
32
33 // Returns the ChromeBrowserState that was last used, creating one if 29 // Returns the ChromeBrowserState that was last used, creating one if
34 // necessary. 30 // necessary.
35 virtual ChromeBrowserState* GetLastUsedBrowserState() = 0; 31 virtual ChromeBrowserState* GetLastUsedBrowserState() = 0;
36 32
37 // Returns the ChromeBrowserState associated with |path|, creating one if 33 // Returns the ChromeBrowserState associated with |path|, creating one if
38 // necessary. 34 // necessary.
39 virtual ChromeBrowserState* GetBrowserState(const base::FilePath& path) = 0; 35 virtual ChromeBrowserState* GetBrowserState(const base::FilePath& path) = 0;
40 36
41 // Returns the BrowserStateInfoCache associated with this manager. 37 // Returns the BrowserStateInfoCache associated with this manager.
42 virtual BrowserStateInfoCache* GetBrowserStateInfoCache() = 0; 38 virtual BrowserStateInfoCache* GetBrowserStateInfoCache() = 0;
43 39
44 // Returns the list of loaded ChromeBrowserStates. 40 // Returns the list of loaded ChromeBrowserStates.
45 virtual std::vector<ChromeBrowserState*> GetLoadedBrowserStates() = 0; 41 virtual std::vector<ChromeBrowserState*> GetLoadedBrowserStates() = 0;
46 42
47 protected: 43 protected:
48 ChromeBrowserStateManager() {} 44 ChromeBrowserStateManager() {}
49 45
50 private: 46 private:
51 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateManager); 47 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateManager);
52 }; 48 };
53 49
54 } // namespace ios 50 } // namespace ios
55 51
56 #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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/application_context_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698