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

Side by Side Diff: chrome/browser/profiles/profile_info_cache.h

Issue 777993003: Add ProfileInfoCache::ProfileIsChild/IsLegacySupervisedAtIndex. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unicorn_upstream
Patch Set: Created 6 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_info_cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_info_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698