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

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

Issue 1664193002: Upstream ChromeBrowserStateManagerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upstream-chrome-browser-state-impl
Patch Set: Address comments Created 4 years, 10 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
OLDNEW
(Empty)
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.
4
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_
7
8 #include <vector>
9
10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
12
13 namespace base {
14 class FilePath;
15 }
16
17 class BrowserStateInfoCache;
18
19 namespace ios {
20
21 class ChromeBrowserState;
22
23 // Provides methods that allow for various ways of creating non-incognito
24 // ChromeBrowserState instances. Owns all instances that it creates.
25 class ChromeBrowserStateManager {
26 public:
27 virtual ~ChromeBrowserStateManager() {}
28
29 // Returns the ChromeBrowserState that was last used, creating one if
30 // necessary.
31 virtual ChromeBrowserState* GetLastUsedBrowserState() = 0;
32
33 // Returns the ChromeBrowserState associated with |path|, creating one if
34 // necessary.
35 virtual ChromeBrowserState* GetBrowserState(const base::FilePath& path) = 0;
36
37 // Returns the BrowserStateInfoCache associated with this manager.
38 virtual BrowserStateInfoCache* GetBrowserStateInfoCache() = 0;
39
40 // Returns the list of loaded ChromeBrowserStates.
41 virtual std::vector<ChromeBrowserState*> GetLoadedBrowserStates() = 0;
42
43 protected:
44 ChromeBrowserStateManager() {}
45
46 private:
47 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateManager);
48 };
49
50 } // namespace ios
51
52 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE _MANAGER_H_
OLDNEW
« no previous file with comments | « ios/public/provider/chrome/browser/BUILD.gn ('k') | ios/public/provider/chrome/browser/chrome_browser_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698