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

Unified Diff: chrome/browser/ui/app_list/profile_store.h

Issue 24707002: Add unit tests for AppListServiceImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: un-const an iterator Created 7 years, 3 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: chrome/browser/ui/app_list/profile_store.h
diff --git a/chrome/browser/ui/app_list/profile_store.h b/chrome/browser/ui/app_list/profile_store.h
new file mode 100644
index 0000000000000000000000000000000000000000..92d61ac878f98aa4886e357f9c676a10d0ed0527
--- /dev/null
+++ b/chrome/browser/ui/app_list/profile_store.h
@@ -0,0 +1,36 @@
+// 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 CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_
+#define CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_
+
+#include "base/callback_forward.h"
+#include "base/files/file_path.h"
+#include "chrome/browser/profiles/profile_info_cache_observer.h"
+
+class Profile;
+
+// Represents something that knows how to load profiles asynchronously.
+class ProfileStore {
+ public:
+ virtual ~ProfileStore() {}
+ virtual void AddProfileObserver(ProfileInfoCacheObserver* observer) = 0;
+
+ // Loads the profile at |path| and calls |callback| when its done. A NULL
+ // Profile* represents an error.
+ virtual void LoadProfileAsync(const base::FilePath& path,
+ base::Callback<void(Profile*)> callback) = 0;
+
+ // Returns the profile at |path| if it is already loaded.
+ virtual Profile* GetProfileByPath(const base::FilePath& path) = 0;
+
+ // The user data directory that profiles are stored under in this instance of
+ // Chrome.
+ virtual base::FilePath GetUserDataDir() = 0;
+
+ // Returns true if the profile at |path| is managed.
+ virtual bool IsProfileManaged(const base::FilePath& path) = 0;
+};
+
+#endif // CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_
« no previous file with comments | « chrome/browser/ui/app_list/profile_loader_unittest.cc ('k') | chrome/browser/ui/app_list/test/fake_keep_alive_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698