| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/login/user.h" | 10 #include "chrome/browser/chromeos/login/user.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual void UserLoggedIn(const std::string& email, | 124 virtual void UserLoggedIn(const std::string& email, |
| 125 const std::string& username_hash, | 125 const std::string& username_hash, |
| 126 bool browser_restart) = 0; | 126 bool browser_restart) = 0; |
| 127 | 127 |
| 128 // Switches to active user identified by |email|. User has to be logged in. | 128 // Switches to active user identified by |email|. User has to be logged in. |
| 129 virtual void SwitchActiveUser(const std::string& email) = 0; | 129 virtual void SwitchActiveUser(const std::string& email) = 0; |
| 130 | 130 |
| 131 // Called when browser session is started i.e. after | 131 // Called when browser session is started i.e. after |
| 132 // browser_creator.LaunchBrowser(...) was called after user sign in. | 132 // browser_creator.LaunchBrowser(...) was called after user sign in. |
| 133 // When user is at the image screen IsUserLoggedIn() will return true | 133 // When user is at the image screen IsUserLoggedIn() will return true |
| 134 // but SessionStarted() will return false. | 134 // but IsSessionStarted() will return false. During the kiosk splash screen, |
| 135 // we perform additional initialization after the user is logged in but |
| 136 // before the session has been started. |
| 135 // Fires NOTIFICATION_SESSION_STARTED. | 137 // Fires NOTIFICATION_SESSION_STARTED. |
| 136 virtual void SessionStarted() = 0; | 138 virtual void SessionStarted() = 0; |
| 137 | 139 |
| 138 // Usually is called when Chrome is restarted after a crash and there's an | 140 // Usually is called when Chrome is restarted after a crash and there's an |
| 139 // active session. First user (one that is passed with --login-user) Chrome | 141 // active session. First user (one that is passed with --login-user) Chrome |
| 140 // session has been already restored at this point. This method asks session | 142 // session has been already restored at this point. This method asks session |
| 141 // manager for all active user sessions, marks them as logged in | 143 // manager for all active user sessions, marks them as logged in |
| 142 // and notifies observers. | 144 // and notifies observers. |
| 143 virtual void RestoreActiveSessions() = 0; | 145 virtual void RestoreActiveSessions() = 0; |
| 144 | 146 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 ScopedTestUserManager(); | 384 ScopedTestUserManager(); |
| 383 ~ScopedTestUserManager(); | 385 ~ScopedTestUserManager(); |
| 384 | 386 |
| 385 private: | 387 private: |
| 386 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); | 388 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); |
| 387 }; | 389 }; |
| 388 | 390 |
| 389 } // namespace chromeos | 391 } // namespace chromeos |
| 390 | 392 |
| 391 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 393 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |