| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // which results is the same in both cases (thus far). | 70 // which results is the same in both cases (thus far). |
| 71 bool GetBackgroundStatusOfProfileAtIndex(size_t index) const override; | 71 bool GetBackgroundStatusOfProfileAtIndex(size_t index) const override; |
| 72 base::string16 GetGAIANameOfProfileAtIndex(size_t index) const override; | 72 base::string16 GetGAIANameOfProfileAtIndex(size_t index) const override; |
| 73 base::string16 GetGAIAGivenNameOfProfileAtIndex(size_t index) const override; | 73 base::string16 GetGAIAGivenNameOfProfileAtIndex(size_t index) const override; |
| 74 // Returns the GAIA picture for the given profile. This may return NULL | 74 // Returns the GAIA picture for the given profile. This may return NULL |
| 75 // if the profile does not have a GAIA picture or if the picture must be | 75 // if the profile does not have a GAIA picture or if the picture must be |
| 76 // loaded from disk. | 76 // loaded from disk. |
| 77 const gfx::Image* GetGAIAPictureOfProfileAtIndex(size_t index) const override; | 77 const gfx::Image* GetGAIAPictureOfProfileAtIndex(size_t index) const override; |
| 78 bool IsUsingGAIAPictureOfProfileAtIndex(size_t index) const override; | 78 bool IsUsingGAIAPictureOfProfileAtIndex(size_t index) const override; |
| 79 bool ProfileIsSupervisedAtIndex(size_t index) const override; | 79 bool ProfileIsSupervisedAtIndex(size_t index) const override; |
| 80 bool ProfileIsChildAtIndex(size_t index) const override; |
| 81 bool ProfileIsLegacySupervisedAtIndex(size_t index) const override; |
| 80 bool IsOmittedProfileAtIndex(size_t index) const override; | 82 bool IsOmittedProfileAtIndex(size_t index) const override; |
| 81 bool ProfileIsSigninRequiredAtIndex(size_t index) const override; | 83 bool ProfileIsSigninRequiredAtIndex(size_t index) const override; |
| 82 std::string GetSupervisedUserIdOfProfileAtIndex(size_t index) const override; | 84 std::string GetSupervisedUserIdOfProfileAtIndex(size_t index) const override; |
| 83 bool ProfileIsEphemeralAtIndex(size_t index) const override; | 85 bool ProfileIsEphemeralAtIndex(size_t index) const override; |
| 84 bool ProfileIsUsingDefaultNameAtIndex(size_t index) const override; | 86 bool ProfileIsUsingDefaultNameAtIndex(size_t index) const override; |
| 85 bool ProfileIsUsingDefaultAvatarAtIndex(size_t index) const override; | 87 bool ProfileIsUsingDefaultAvatarAtIndex(size_t index) const override; |
| 86 | 88 |
| 87 size_t GetAvatarIconIndexOfProfileAtIndex(size_t index) const; | 89 size_t GetAvatarIconIndexOfProfileAtIndex(size_t index) const; |
| 88 | 90 |
| 89 void SetProfileActiveTimeAtIndex(size_t index); | 91 void SetProfileActiveTimeAtIndex(size_t index); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // This prevents a picture from being downloaded multiple times. The | 224 // This prevents a picture from being downloaded multiple times. The |
| 223 // ProfileAvatarDownloader instances are deleted when the download completes | 225 // ProfileAvatarDownloader instances are deleted when the download completes |
| 224 // or when the ProfileInfoCache is destroyed. | 226 // or when the ProfileInfoCache is destroyed. |
| 225 mutable std::map<std::string, ProfileAvatarDownloader*> | 227 mutable std::map<std::string, ProfileAvatarDownloader*> |
| 226 avatar_images_downloads_in_progress_; | 228 avatar_images_downloads_in_progress_; |
| 227 | 229 |
| 228 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache); | 230 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache); |
| 229 }; | 231 }; |
| 230 | 232 |
| 231 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ | 233 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ |
| OLD | NEW |