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