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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ios/public/provider/chrome/browser/browser_state/chrome_browser_state_manager.h
diff --git a/ios/public/provider/chrome/browser/browser_state/chrome_browser_state_manager.h b/ios/public/provider/chrome/browser/browser_state/chrome_browser_state_manager.h
deleted file mode 100644
index b17c41aed515e875e9cd2b0331b508ef65885f85..0000000000000000000000000000000000000000
--- a/ios/public/provider/chrome/browser/browser_state/chrome_browser_state_manager.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MANAGER_H_
-#define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MANAGER_H_
-
-#include <vector>
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-
-namespace base {
-class FilePath;
-}
-
-class BrowserStateInfoCache;
-
-namespace ios {
-
-class ChromeBrowserState;
-
-// Provides methods that allow for various ways of creating non-incognito
-// ChromeBrowserState instances. Owns all instances that it creates.
-class ChromeBrowserStateManager {
- public:
- virtual ~ChromeBrowserStateManager() {}
-
- // Returns the ChromeBrowserState that was last used, creating one if
- // necessary.
- virtual ChromeBrowserState* GetLastUsedBrowserState() = 0;
-
- // Returns the ChromeBrowserState associated with |path|, creating one if
- // necessary.
- virtual ChromeBrowserState* GetBrowserState(const base::FilePath& path) = 0;
-
- // Returns the BrowserStateInfoCache associated with this manager.
- virtual BrowserStateInfoCache* GetBrowserStateInfoCache() = 0;
-
- // Returns the list of loaded ChromeBrowserStates.
- virtual std::vector<ChromeBrowserState*> GetLoadedBrowserStates() = 0;
-
- protected:
- ChromeBrowserStateManager() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ChromeBrowserStateManager);
-};
-
-} // namespace ios
-
-#endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_MANAGER_H_
« 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