| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ |
| 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 void SetGAIAGivenNameOfProfileAtIndex(size_t index, | 115 void SetGAIAGivenNameOfProfileAtIndex(size_t index, |
| 116 const base::string16& name); | 116 const base::string16& name); |
| 117 void SetGAIAPictureOfProfileAtIndex(size_t index, const gfx::Image* image); | 117 void SetGAIAPictureOfProfileAtIndex(size_t index, const gfx::Image* image); |
| 118 void SetIsUsingGAIAPictureOfProfileAtIndex(size_t index, bool value); | 118 void SetIsUsingGAIAPictureOfProfileAtIndex(size_t index, bool value); |
| 119 void SetProfileSigninRequiredAtIndex(size_t index, bool value); | 119 void SetProfileSigninRequiredAtIndex(size_t index, bool value); |
| 120 void SetProfileIsEphemeralAtIndex(size_t index, bool value); | 120 void SetProfileIsEphemeralAtIndex(size_t index, bool value); |
| 121 void SetProfileIsUsingDefaultNameAtIndex(size_t index, bool value); | 121 void SetProfileIsUsingDefaultNameAtIndex(size_t index, bool value); |
| 122 void SetProfileIsUsingDefaultAvatarAtIndex(size_t index, bool value); | 122 void SetProfileIsUsingDefaultAvatarAtIndex(size_t index, bool value); |
| 123 | 123 |
| 124 // Determines whether |name| is one of the default assigned names. | 124 // Determines whether |name| is one of the default assigned names. |
| 125 bool IsDefaultProfileName(const base::string16& name); | 125 bool IsDefaultProfileName(const base::string16& name) const; |
| 126 | 126 |
| 127 // Returns unique name that can be assigned to a newly created profile. | 127 // Returns unique name that can be assigned to a newly created profile. |
| 128 base::string16 ChooseNameForNewProfile(size_t icon_index) const; | 128 base::string16 ChooseNameForNewProfile(size_t icon_index) const; |
| 129 | 129 |
| 130 // Returns an avatar icon index that can be assigned to a newly created | 130 // Returns an avatar icon index that can be assigned to a newly created |
| 131 // profile. Note that the icon may not be unique since there are a limited | 131 // profile. Note that the icon may not be unique since there are a limited |
| 132 // set of default icons. | 132 // set of default icons. |
| 133 size_t ChooseAvatarIconIndexForNewProfile() const; | 133 size_t ChooseAvatarIconIndexForNewProfile() const; |
| 134 | 134 |
| 135 const base::FilePath& GetUserDataDir() const; | 135 const base::FilePath& GetUserDataDir() const; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // This prevents a picture from being downloaded multiple times. The | 229 // This prevents a picture from being downloaded multiple times. The |
| 230 // ProfileAvatarDownloader instances are deleted when the download completes | 230 // ProfileAvatarDownloader instances are deleted when the download completes |
| 231 // or when the ProfileInfoCache is destroyed. | 231 // or when the ProfileInfoCache is destroyed. |
| 232 mutable std::map<std::string, ProfileAvatarDownloader*> | 232 mutable std::map<std::string, ProfileAvatarDownloader*> |
| 233 avatar_images_downloads_in_progress_; | 233 avatar_images_downloads_in_progress_; |
| 234 | 234 |
| 235 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache); | 235 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache); |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ | 238 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ |
| OLD | NEW |