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

Side by Side 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, 2 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 | Annotate | Revision Log
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 CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_
7
8 #include "base/callback_forward.h"
9 #include "base/files/file_path.h"
10 #include "chrome/browser/profiles/profile_info_cache_observer.h"
11
12 class Profile;
13
14 // Represents something that knows how to load profiles asynchronously.
15 class ProfileStore {
16 public:
17 virtual ~ProfileStore() {}
18 virtual void AddProfileObserver(ProfileInfoCacheObserver* observer) = 0;
19
20 // Loads the profile at |path| and calls |callback| when its done. A NULL
21 // Profile* represents an error.
22 virtual void LoadProfileAsync(const base::FilePath& path,
23 base::Callback<void(Profile*)> callback) = 0;
24
25 virtual Profile* GetProfileByPath(const base::FilePath& path) = 0;
26 virtual base::FilePath GetUserDataDir() = 0;
27 };
28
29 #endif // CHROME_BROWSER_UI_APP_LIST_PROFILE_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698