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

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

Issue 14137032: Create profile .ico file on profile creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rework, set pref through callback Created 7 years, 6 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/weak_ptr.h"
16 #include "base/prefs/pref_change_registrar.h" 17 #include "base/prefs/pref_change_registrar.h"
17 #include "base/timer.h" 18 #include "base/timer.h"
18 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/profiles/profile_impl_io_data.h" 20 #include "chrome/browser/profiles/profile_impl_io_data.h"
20 #include "content/public/browser/content_browser_client.h" 21 #include "content/public/browser/content_browser_client.h"
21 #include "content/public/browser/host_zoom_map.h" 22 #include "content/public/browser/host_zoom_map.h"
22 23
23 class NetPrefObserver; 24 class NetPrefObserver;
24 class PrefService; 25 class PrefService;
25 class PrefServiceSyncable; 26 class PrefServiceSyncable;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void OnPrefsLoaded(bool success); 168 void OnPrefsLoaded(bool success);
168 169
169 base::FilePath GetPrefFilePath(); 170 base::FilePath GetPrefFilePath();
170 171
171 #if defined(ENABLE_SESSION_SERVICE) 172 #if defined(ENABLE_SESSION_SERVICE)
172 void StopCreateSessionServiceTimer(); 173 void StopCreateSessionServiceTimer();
173 174
174 void EnsureSessionServiceCreated(); 175 void EnsureSessionServiceCreated();
175 #endif 176 #endif
176 177
178 void OnProfileIconCreateSuccess();
Alexei Svitkine (slow) 2013/06/05 14:06:03 Add a comment, as well as one for the other functi
calamity 2013/06/07 04:26:26 Done.
177 179
178 void EnsureRequestContextCreated() { 180 void EnsureRequestContextCreated() {
179 GetRequestContext(); 181 GetRequestContext();
180 } 182 }
181 183
182 void UpdateProfileUserNameCache(); 184 void UpdateProfileUserNameCache();
183 185
184 // Updates the ProfileInfoCache with data from this profile. 186 // Updates the ProfileInfoCache with data from this profile.
185 void UpdateProfileNameCache(); 187 void UpdateProfileNameCache();
186 void UpdateProfileAvatarCache(); 188 void UpdateProfileAvatarCache();
(...skipping 30 matching lines...) Expand all
217 scoped_ptr<PrefServiceSyncable> prefs_; 219 scoped_ptr<PrefServiceSyncable> prefs_;
218 scoped_ptr<PrefServiceSyncable> otr_prefs_; 220 scoped_ptr<PrefServiceSyncable> otr_prefs_;
219 ProfileImplIOData::Handle io_data_; 221 ProfileImplIOData::Handle io_data_;
220 scoped_refptr<ExtensionSpecialStoragePolicy> 222 scoped_refptr<ExtensionSpecialStoragePolicy>
221 extension_special_storage_policy_; 223 extension_special_storage_policy_;
222 scoped_ptr<NetPrefObserver> net_pref_observer_; 224 scoped_ptr<NetPrefObserver> net_pref_observer_;
223 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; 225 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_;
224 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 226 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
225 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; 227 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_;
226 228
229 base::WeakPtrFactory<ProfileImpl> weak_ptr_factory_;
230
227 // Exit type the last time the profile was opened. This is set only once from 231 // Exit type the last time the profile was opened. This is set only once from
228 // prefs. 232 // prefs.
229 ExitType last_session_exit_type_; 233 ExitType last_session_exit_type_;
230 234
231 #if defined(ENABLE_SESSION_SERVICE) 235 #if defined(ENABLE_SESSION_SERVICE)
232 base::OneShotTimer<ProfileImpl> create_session_service_timer_; 236 base::OneShotTimer<ProfileImpl> create_session_service_timer_;
233 #endif 237 #endif
234 238
235 scoped_ptr<Profile> off_the_record_profile_; 239 scoped_ptr<Profile> off_the_record_profile_;
236 240
(...skipping 28 matching lines...) Expand all
265 // components/browser_context_keyed_service/browser_context_keyed_service_fa ctory.{h,cc} 269 // components/browser_context_keyed_service/browser_context_keyed_service_fa ctory.{h,cc}
266 270
267 Profile::Delegate* delegate_; 271 Profile::Delegate* delegate_;
268 272
269 chrome_browser_net::Predictor* predictor_; 273 chrome_browser_net::Predictor* predictor_;
270 274
271 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 275 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
272 }; 276 };
273 277
274 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 278 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698