| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 void CreateUserSession(const UserContext& user_context, | 281 void CreateUserSession(const UserContext& user_context, |
| 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 NotifyUserLoggedIn(); | |
| 292 void PrepareProfile(); | 291 void PrepareProfile(); |
| 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 Profile* profile, | 296 Profile* profile, |
| 298 Profile::CreateStatus status); | 297 Profile::CreateStatus status); |
| 299 | 298 |
| 300 // Callback for Profile::CREATE_STATUS_CREATED profile state. | 299 // Callback for Profile::CREATE_STATUS_CREATED profile state. |
| 301 // Initializes basic preferences for newly created profile. Any other | 300 // Initializes basic preferences for newly created profile. Any other |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 hats_notification_controller_; | 502 hats_notification_controller_; |
| 504 | 503 |
| 505 base::WeakPtrFactory<UserSessionManager> weak_factory_; | 504 base::WeakPtrFactory<UserSessionManager> weak_factory_; |
| 506 | 505 |
| 507 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); | 506 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); |
| 508 }; | 507 }; |
| 509 | 508 |
| 510 } // namespace chromeos | 509 } // namespace chromeos |
| 511 | 510 |
| 512 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 511 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
| OLD | NEW |