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

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: 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..a32b1bbb2cb5b9aae7a6f21869d107e669950eaf
--- /dev/null
+++ b/chrome/browser/ui/app_list/profile_store.h
@@ -0,0 +1,29 @@
+// 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;
+
+ virtual Profile* GetProfileByPath(const base::FilePath& path) = 0;
+ virtual base::FilePath GetUserDataDir() = 0;
+};
+
+#endif // CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_

Powered by Google App Engine
This is Rietveld 408576698