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

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

Issue 1794353003: Refactor ProfileInfoCache in c/b/profiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a bug that causes unit tests without debug code to fail. Created 4 years, 8 months 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
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 <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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_list_desktop_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698