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 // 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 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 void DoFinalInit(bool is_new_profile); | 147 void DoFinalInit(bool is_new_profile); |
148 | 148 |
149 void InitHostZoomMap(); | 149 void InitHostZoomMap(); |
150 | 150 |
151 // Does final prefs initialization and calls Init(). | 151 // Does final prefs initialization and calls Init(). |
152 void OnPrefsLoaded(bool success); | 152 void OnPrefsLoaded(bool success); |
153 | 153 |
154 void CreateWebDataService(); | 154 void CreateWebDataService(); |
155 FilePath GetPrefFilePath(); | 155 FilePath GetPrefFilePath(); |
156 | 156 |
| 157 #if defined(ENABLE_SESSION_SERVICE) |
157 void StopCreateSessionServiceTimer(); | 158 void StopCreateSessionServiceTimer(); |
158 | 159 |
| 160 void EnsureSessionServiceCreated(); |
| 161 #endif |
| 162 |
| 163 |
159 void EnsureRequestContextCreated() { | 164 void EnsureRequestContextCreated() { |
160 GetRequestContext(); | 165 GetRequestContext(); |
161 } | 166 } |
162 | 167 |
163 void EnsureSessionServiceCreated(); | |
164 | |
165 void UpdateProfileUserNameCache(); | 168 void UpdateProfileUserNameCache(); |
166 | 169 |
167 | 170 |
168 // Updates the ProfileInfoCache with data from this profile. | 171 // Updates the ProfileInfoCache with data from this profile. |
169 void UpdateProfileNameCache(); | 172 void UpdateProfileNameCache(); |
170 void UpdateProfileAvatarCache(); | 173 void UpdateProfileAvatarCache(); |
171 | 174 |
172 void GetCacheParameters(bool is_media_context, | 175 void GetCacheParameters(bool is_media_context, |
173 FilePath* cache_path, | 176 FilePath* cache_path, |
174 int* max_size); | 177 int* max_size); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; | 219 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; |
217 scoped_refptr<WebDataService> web_data_service_; | 220 scoped_refptr<WebDataService> web_data_service_; |
218 bool history_service_created_; | 221 bool history_service_created_; |
219 bool favicon_service_created_; | 222 bool favicon_service_created_; |
220 bool created_web_data_service_; | 223 bool created_web_data_service_; |
221 bool clear_local_state_on_exit_; | 224 bool clear_local_state_on_exit_; |
222 | 225 |
223 // Whether or not the last session exited cleanly. This is set only once. | 226 // Whether or not the last session exited cleanly. This is set only once. |
224 bool last_session_exited_cleanly_; | 227 bool last_session_exited_cleanly_; |
225 | 228 |
| 229 #if defined(ENABLE_SESSION_SERVICE) |
226 base::OneShotTimer<ProfileImpl> create_session_service_timer_; | 230 base::OneShotTimer<ProfileImpl> create_session_service_timer_; |
| 231 #endif |
227 | 232 |
228 scoped_ptr<Profile> off_the_record_profile_; | 233 scoped_ptr<Profile> off_the_record_profile_; |
229 | 234 |
230 // See GetStartTime for details. | 235 // See GetStartTime for details. |
231 base::Time start_time_; | 236 base::Time start_time_; |
232 | 237 |
233 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. | 238 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. |
234 | 239 |
235 #if defined(OS_CHROMEOS) | 240 #if defined(OS_CHROMEOS) |
236 scoped_ptr<chromeos::Preferences> chromeos_preferences_; | 241 scoped_ptr<chromeos::Preferences> chromeos_preferences_; |
(...skipping 25 matching lines...) Expand all Loading... |
262 Profile::Delegate* delegate_; | 267 Profile::Delegate* delegate_; |
263 | 268 |
264 chrome_browser_net::Predictor* predictor_; | 269 chrome_browser_net::Predictor* predictor_; |
265 | 270 |
266 bool session_restore_enabled_; | 271 bool session_restore_enabled_; |
267 | 272 |
268 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 273 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
269 }; | 274 }; |
270 | 275 |
271 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 276 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |