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

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

Issue 1242793005: Refactor most c/b/profiles calls to ProfileInfoCache. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows unit test and ChromeOS build Created 5 years, 5 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/profiles/profile_attributes_storage.h
diff --git a/chrome/browser/profiles/profile_attributes_storage.h b/chrome/browser/profiles/profile_attributes_storage.h
index e9026c5f2f39b56c1fe503703e540b7ea2d0296c..38c261bb75451cd0d73cba15075cb81d9461875a 100644
--- a/chrome/browser/profiles/profile_attributes_storage.h
+++ b/chrome/browser/profiles/profile_attributes_storage.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_STORAGE_H_
class ProfileAttributesEntry;
+class ProfileInfoCacheObserver;
class ProfileAttributesStorage {
public:
@@ -42,6 +43,25 @@ class ProfileAttributesStorage {
// Returns the count of known profiles.
virtual size_t GetNumberOfProfiles() const = 0;
+ // Returns unique name that can be assigned to a newly created profile.
Mike Lerman 2015/08/06 16:06:19 insert "a" before "unique"
+ virtual base::string16 ChooseNameForNewProfile(size_t icon_index) const = 0;
+
+ // Determines whether |name| is one of the default assigned names.
+ virtual bool IsDefaultProfileName(const base::string16& name) const = 0;
+
+ // Saves the avatar |image| at |image_path|. This is used both for the
+ // GAIA profile pictures and the ProfileAvatarDownloader that is used to
+ // download the high res avatars.
+ virtual void SaveAvatarImageAtPath(const gfx::Image* image,
+ const std::string& key,
+ const base::FilePath& image_path,
+ const base::FilePath& profile_path) = 0;
+
+ virtual const base::FilePath& GetUserDataDir() const = 0;
+
+ virtual void AddObserver(ProfileInfoCacheObserver* observer) = 0;
+ virtual void RemoveObserver(ProfileInfoCacheObserver* observer) = 0;
+
DISALLOW_COPY_AND_ASSIGN(ProfileAttributesStorage);
};

Powered by Google App Engine
This is Rietveld 408576698