OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 bool has_auth_cookies); | 282 bool has_auth_cookies); |
283 void PreStartSession(); | 283 void PreStartSession(); |
284 | 284 |
285 // Store any useful UserContext data early on when profile has not been | 285 // Store any useful UserContext data early on when profile has not been |
286 // created yet and user services were not yet initialized. Can store | 286 // created yet and user services were not yet initialized. Can store |
287 // information in Local State like GAIA ID. | 287 // information in Local State like GAIA ID. |
288 void StoreUserContextDataBeforeProfileIsCreated(); | 288 void StoreUserContextDataBeforeProfileIsCreated(); |
289 | 289 |
290 void StartCrosSession(); | 290 void StartCrosSession(); |
291 void PrepareProfile(); | 291 void PrepareProfile(); |
292 void PrepareProfileAfterFilesystemCheck(bool arc_compatible_filesystem); | |
293 | 292 |
294 // Callback for asynchronous profile creation. | 293 // Callback for asynchronous profile creation. |
295 void OnProfileCreated(const UserContext& user_context, | 294 void OnProfileCreated(const UserContext& user_context, |
296 bool is_incognito_profile, | 295 bool is_incognito_profile, |
297 bool arc_compatible_filesystem, | |
298 Profile* profile, | 296 Profile* profile, |
299 Profile::CreateStatus status); | 297 Profile::CreateStatus status); |
300 | 298 |
301 // Callback for Profile::CREATE_STATUS_CREATED profile state. | 299 // Callback for Profile::CREATE_STATUS_CREATED profile state. |
302 // Initializes basic preferences for newly created profile. Any other | 300 // Initializes basic preferences for newly created profile. Any other |
303 // early profile initialization that needs to happen before | 301 // early profile initialization that needs to happen before |
304 // ProfileManager::DoFinalInit() gets called is done here. | 302 // ProfileManager::DoFinalInit() gets called is done here. |
305 void InitProfilePreferences(Profile* profile, | 303 void InitProfilePreferences(Profile* profile, |
306 const UserContext& user_context, | 304 const UserContext& user_context); |
307 bool arc_compatible_filesystem); | |
308 | 305 |
309 // Callback for Profile::CREATE_STATUS_INITIALIZED profile state. | 306 // Callback for Profile::CREATE_STATUS_INITIALIZED profile state. |
310 // Profile is created, extensions and promo resources are initialized. | 307 // Profile is created, extensions and promo resources are initialized. |
311 void UserProfileInitialized(Profile* profile, | 308 void UserProfileInitialized(Profile* profile, |
312 bool is_incognito_profile, | 309 bool is_incognito_profile, |
313 const AccountId& account_id); | 310 const AccountId& account_id); |
314 | 311 |
315 // Callback to resume profile creation after transferring auth data from | 312 // Callback to resume profile creation after transferring auth data from |
316 // the authentication profile. | 313 // the authentication profile. |
317 void CompleteProfileCreateAfterAuthTransfer(Profile* profile); | 314 void CompleteProfileCreateAfterAuthTransfer(Profile* profile); |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 scoped_refptr<HatsNotificationController> hats_notification_controller_; | 515 scoped_refptr<HatsNotificationController> hats_notification_controller_; |
519 | 516 |
520 base::WeakPtrFactory<UserSessionManager> weak_factory_; | 517 base::WeakPtrFactory<UserSessionManager> weak_factory_; |
521 | 518 |
522 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); | 519 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); |
523 }; | 520 }; |
524 | 521 |
525 } // namespace chromeos | 522 } // namespace chromeos |
526 | 523 |
527 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 524 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
OLD | NEW |