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 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 static int create_readme_delay_ms; | 158 static int create_readme_delay_ms; |
159 | 159 |
160 ProfileImpl(const base::FilePath& path, | 160 ProfileImpl(const base::FilePath& path, |
161 Delegate* delegate, | 161 Delegate* delegate, |
162 CreateMode create_mode, | 162 CreateMode create_mode, |
163 base::SequencedTaskRunner* sequenced_task_runner); | 163 base::SequencedTaskRunner* sequenced_task_runner); |
164 | 164 |
165 // Does final initialization. Should be called after prefs were loaded. | 165 // Does final initialization. Should be called after prefs were loaded. |
166 void DoFinalInit(); | 166 void DoFinalInit(); |
167 | 167 |
| 168 // Switch locale (when possible) and proceed to OnLocaleReady(). |
| 169 void OnPrefsLoaded(bool success); |
| 170 |
168 // Does final prefs initialization and calls Init(). | 171 // Does final prefs initialization and calls Init(). |
169 void OnPrefsLoaded(bool success); | 172 void OnLocaleReady(); |
170 | 173 |
171 #if defined(ENABLE_SESSION_SERVICE) | 174 #if defined(ENABLE_SESSION_SERVICE) |
172 void StopCreateSessionServiceTimer(); | 175 void StopCreateSessionServiceTimer(); |
173 | 176 |
174 void EnsureSessionServiceCreated(); | 177 void EnsureSessionServiceCreated(); |
175 #endif | 178 #endif |
176 | 179 |
177 | 180 |
178 void EnsureRequestContextCreated() { | 181 void EnsureRequestContextCreated() { |
179 GetRequestContext(); | 182 GetRequestContext(); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // components/keyed_service/content/browser_context_keyed_service_factory.* | 275 // components/keyed_service/content/browser_context_keyed_service_factory.* |
273 | 276 |
274 Profile::Delegate* delegate_; | 277 Profile::Delegate* delegate_; |
275 | 278 |
276 chrome_browser_net::Predictor* predictor_; | 279 chrome_browser_net::Predictor* predictor_; |
277 | 280 |
278 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 281 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
279 }; | 282 }; |
280 | 283 |
281 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 284 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |