| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 // OAuthLoginManager. | 331 // OAuthLoginManager. |
| 332 void InitSessionRestoreStrategy(); | 332 void InitSessionRestoreStrategy(); |
| 333 | 333 |
| 334 // Restores GAIA auth cookies for the created user profile from OAuth2 token. | 334 // Restores GAIA auth cookies for the created user profile from OAuth2 token. |
| 335 void RestoreAuthSessionImpl(Profile* profile, | 335 void RestoreAuthSessionImpl(Profile* profile, |
| 336 bool restore_from_auth_cookies); | 336 bool restore_from_auth_cookies); |
| 337 | 337 |
| 338 // Initializes RLZ. If |disabled| is true, RLZ pings are disabled. | 338 // Initializes RLZ. If |disabled| is true, RLZ pings are disabled. |
| 339 void InitRlzImpl(Profile* profile, bool disabled); | 339 void InitRlzImpl(Profile* profile, bool disabled); |
| 340 | 340 |
| 341 // If |user| is not a kiosk app, sets session type as seen by extensions |
| 342 // feature system according to |user|'s type. |
| 343 // The value should eventually be set for kiosk users, too - that's done as |
| 344 // part of special, kiosk user session bring-up. |
| 345 // NOTE: This has to be called before profile is initialized - so it is set up |
| 346 // when extension are loaded during profile initialization. |
| 347 void InitNonKioskExtensionFeaturesSessionType(const user_manager::User* user); |
| 348 |
| 341 // Callback to process RetrieveActiveSessions() request results. | 349 // Callback to process RetrieveActiveSessions() request results. |
| 342 void OnRestoreActiveSessions( | 350 void OnRestoreActiveSessions( |
| 343 const SessionManagerClient::ActiveSessionsMap& sessions, | 351 const SessionManagerClient::ActiveSessionsMap& sessions, |
| 344 bool success); | 352 bool success); |
| 345 | 353 |
| 346 // Called by OnRestoreActiveSessions() when there're user sessions in | 354 // Called by OnRestoreActiveSessions() when there're user sessions in |
| 347 // |pending_user_sessions_| that has to be restored one by one. | 355 // |pending_user_sessions_| that has to be restored one by one. |
| 348 // Also called after first user session from that list is restored and so on. | 356 // Also called after first user session from that list is restored and so on. |
| 349 // Process continues till |pending_user_sessions_| map is not empty. | 357 // Process continues till |pending_user_sessions_| map is not empty. |
| 350 void RestorePendingUserSessions(); | 358 void RestorePendingUserSessions(); |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 hats_notification_controller_; | 509 hats_notification_controller_; |
| 502 | 510 |
| 503 base::WeakPtrFactory<UserSessionManager> weak_factory_; | 511 base::WeakPtrFactory<UserSessionManager> weak_factory_; |
| 504 | 512 |
| 505 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); | 513 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); |
| 506 }; | 514 }; |
| 507 | 515 |
| 508 } // namespace chromeos | 516 } // namespace chromeos |
| 509 | 517 |
| 510 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 518 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
| OLD | NEW |