| 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_
|
|
|