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