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

Unified Diff: chrome/browser/profiles/profile_info_interface.h

Issue 8539043: Refactor ProfileInfoCache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/profiles/profile_info_entry.cc ('k') | chrome/browser/profiles/profile_info_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_info_interface.h
diff --git a/chrome/browser/profiles/profile_info_interface.h b/chrome/browser/profiles/profile_info_interface.h
index 6a08f9a29d6890b4b1991b6ddb2efbcb212ba9dd..a16f28236053641ceb6fdf2a2b186e9c56997af9 100644
--- a/chrome/browser/profiles/profile_info_interface.h
+++ b/chrome/browser/profiles/profile_info_interface.h
@@ -5,12 +5,10 @@
#ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_
#define CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_
-#include "base/file_path.h"
-#include "base/string16.h"
+#include <vector>
-namespace gfx {
-class Image;
-}
+class FilePath;
+class ProfileInfoEntry;
// This abstract interface is used to query the profiles backend for information
// about the different profiles. Its sole concrete implementation is the
@@ -19,22 +17,10 @@ class ProfileInfoInterface {
public:
virtual size_t GetNumberOfProfiles() const = 0;
- virtual size_t GetIndexOfProfileWithPath(
- const FilePath& profile_path) const = 0;
+ virtual std::vector<ProfileInfoEntry> GetProfilesSortedByName() const = 0;
- virtual string16 GetNameOfProfileAtIndex(size_t index) const = 0;
-
- virtual FilePath GetPathOfProfileAtIndex(size_t index) const = 0;
-
- virtual string16 GetUserNameOfProfileAtIndex(size_t index) const = 0;
-
- virtual const gfx::Image& GetAvatarIconOfProfileAtIndex(
- size_t index) const = 0;
-
- // Returns true if the profile at the given index is currently running any
- // background apps.
- virtual bool GetBackgroundStatusOfProfileAtIndex(
- size_t index) const = 0;
+ virtual bool GetInfoForProfile(const FilePath& path,
+ ProfileInfoEntry* entry) const = 0;
protected:
virtual ~ProfileInfoInterface() {}
« no previous file with comments | « chrome/browser/profiles/profile_info_entry.cc ('k') | chrome/browser/profiles/profile_info_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698