Chromium Code Reviews| 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); |
| }; |