| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // UserSessionManager finished restoring user sessions. | 108 // UserSessionManager finished restoring user sessions. |
| 109 bool UserSessionsRestored() const; | 109 bool UserSessionsRestored() const; |
| 110 | 110 |
| 111 // Returns true iff browser has been restarted after crash and | 111 // Returns true iff browser has been restarted after crash and |
| 112 // user sessions restoration is in progress. | 112 // user sessions restoration is in progress. |
| 113 bool UserSessionsRestoreInProgress() const; | 113 bool UserSessionsRestoreInProgress() const; |
| 114 | 114 |
| 115 // Initialize RLZ. | 115 // Initialize RLZ. |
| 116 void InitRlz(Profile* profile); | 116 void InitRlz(Profile* profile); |
| 117 | 117 |
| 118 // Get the NSS cert database for the user represented with |profile| | |
| 119 // and start certificate loader with it. | |
| 120 void InitializeCerts(Profile* profile); | |
| 121 | |
| 122 // TODO(nkostylev): Drop these methods once LoginUtilsImpl::AttemptRestart() | 118 // TODO(nkostylev): Drop these methods once LoginUtilsImpl::AttemptRestart() |
| 123 // is migrated. | 119 // is migrated. |
| 124 OAuth2LoginManager::SessionRestoreStrategy GetSigninSessionRestoreStrategy(); | 120 OAuth2LoginManager::SessionRestoreStrategy GetSigninSessionRestoreStrategy(); |
| 125 bool exit_after_session_restore() { return exit_after_session_restore_; } | 121 bool exit_after_session_restore() { return exit_after_session_restore_; } |
| 126 void set_exit_after_session_restore(bool value) { | 122 void set_exit_after_session_restore(bool value) { |
| 127 exit_after_session_restore_ = value; | 123 exit_after_session_restore_ = value; |
| 128 } | 124 } |
| 129 | 125 |
| 130 // Invoked when the user is logging in for the first time, or is logging in to | 126 // Invoked when the user is logging in for the first time, or is logging in to |
| 131 // an ephemeral session type, such as guest or a public session. | 127 // an ephemeral session type, such as guest or a public session. |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; | 308 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; |
| 313 bool running_easy_unlock_key_ops_; | 309 bool running_easy_unlock_key_ops_; |
| 314 base::Closure easy_unlock_key_ops_finished_callback_; | 310 base::Closure easy_unlock_key_ops_finished_callback_; |
| 315 | 311 |
| 316 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); | 312 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); |
| 317 }; | 313 }; |
| 318 | 314 |
| 319 } // namespace chromeos | 315 } // namespace chromeos |
| 320 | 316 |
| 321 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 317 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
| OLD | NEW |