| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 const base::string16& name); | 141 const base::string16& name); |
| 142 void SetGAIAPictureOfProfileAtIndex(size_t index, const gfx::Image* image); | 142 void SetGAIAPictureOfProfileAtIndex(size_t index, const gfx::Image* image); |
| 143 void SetIsUsingGAIAPictureOfProfileAtIndex(size_t index, bool value); | 143 void SetIsUsingGAIAPictureOfProfileAtIndex(size_t index, bool value); |
| 144 void SetProfileSigninRequiredAtIndex(size_t index, bool value); | 144 void SetProfileSigninRequiredAtIndex(size_t index, bool value); |
| 145 void SetProfileIsEphemeralAtIndex(size_t index, bool value); | 145 void SetProfileIsEphemeralAtIndex(size_t index, bool value); |
| 146 void SetProfileIsUsingDefaultNameAtIndex(size_t index, bool value); | 146 void SetProfileIsUsingDefaultNameAtIndex(size_t index, bool value); |
| 147 void SetProfileIsUsingDefaultAvatarAtIndex(size_t index, bool value); | 147 void SetProfileIsUsingDefaultAvatarAtIndex(size_t index, bool value); |
| 148 void SetProfileIsAuthErrorAtIndex(size_t index, bool value); | 148 void SetProfileIsAuthErrorAtIndex(size_t index, bool value); |
| 149 | 149 |
| 150 // Determines whether |name| is one of the default assigned names. | 150 // Determines whether |name| is one of the default assigned names. |
| 151 bool IsDefaultProfileName(const base::string16& name) const; | 151 bool IsDefaultProfileName(const base::string16& name) const override; |
| 152 | 152 |
| 153 // Returns unique name that can be assigned to a newly created profile. | 153 // Returns unique name that can be assigned to a newly created profile. |
| 154 base::string16 ChooseNameForNewProfile(size_t icon_index) const override; | 154 base::string16 ChooseNameForNewProfile(size_t icon_index) const override; |
| 155 | 155 |
| 156 // Returns an avatar icon index that can be assigned to a newly created | 156 // Returns an avatar icon index that can be assigned to a newly created |
| 157 // profile. Note that the icon may not be unique since there are a limited | 157 // profile. Note that the icon may not be unique since there are a limited |
| 158 // set of default icons. | 158 // set of default icons. |
| 159 size_t ChooseAvatarIconIndexForNewProfile() const override; | 159 size_t ChooseAvatarIconIndexForNewProfile() const override; |
| 160 | 160 |
| 161 // Statistics | 161 // Statistics |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 avatar_images_downloads_in_progress_; | 289 avatar_images_downloads_in_progress_; |
| 290 | 290 |
| 291 // Determines of the ProfileAvatarDownloader should be created and executed | 291 // Determines of the ProfileAvatarDownloader should be created and executed |
| 292 // or not. Only set to true for tests. | 292 // or not. Only set to true for tests. |
| 293 bool disable_avatar_download_for_testing_; | 293 bool disable_avatar_download_for_testing_; |
| 294 | 294 |
| 295 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache); | 295 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache); |
| 296 }; | 296 }; |
| 297 | 297 |
| 298 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ | 298 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ |
| OLD | NEW |