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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 // Updates the display name for public account |username| from policy settings | 255 // Updates the display name for public account |username| from policy settings |
256 // associated with that username. | 256 // associated with that username. |
257 void UpdatePublicAccountDisplayName(const std::string& username); | 257 void UpdatePublicAccountDisplayName(const std::string& username); |
258 | 258 |
259 // Notifies the UI about a change to the user list. | 259 // Notifies the UI about a change to the user list. |
260 void NotifyUserListChanged(); | 260 void NotifyUserListChanged(); |
261 | 261 |
262 // Notifies observers that merge session state had changed. | 262 // Notifies observers that merge session state had changed. |
263 void NotifyMergeSessionStateChanged(); | 263 void NotifyMergeSessionStateChanged(); |
264 | 264 |
| 265 // Notifies observers that active user has changed. |
| 266 void NotifyActiveUserChanged(const User* active_user); |
| 267 |
265 // Notifies observers that active user_id hash has changed. | 268 // Notifies observers that active user_id hash has changed. |
266 void NotifyActiveUserHashChanged(const std::string& hash); | 269 void NotifyActiveUserHashChanged(const std::string& hash); |
267 | 270 |
268 // Notifies observers that user pending sessions restore has finished. | 271 // Notifies observers that user pending sessions restore has finished. |
269 void NotifyPendingUserSessionsRestoreFinished(); | 272 void NotifyPendingUserSessionsRestoreFinished(); |
270 | 273 |
271 // Returns true if there is non-committed user creation transaction. | 274 // Returns true if there is non-committed user creation transaction. |
272 bool HasFailedLocallyManagedUserCreationTransaction(); | 275 bool HasFailedLocallyManagedUserCreationTransaction(); |
273 | 276 |
274 // Attempts to clean up data that could be left from failed user creation. | 277 // Attempts to clean up data that could be left from failed user creation. |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 // User sessions that have to be restored after browser crash. | 398 // User sessions that have to be restored after browser crash. |
396 // [user_id] > [user_id_hash] | 399 // [user_id] > [user_id_hash] |
397 SessionManagerClient::ActiveSessionsMap pending_user_sessions_; | 400 SessionManagerClient::ActiveSessionsMap pending_user_sessions_; |
398 | 401 |
399 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); | 402 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); |
400 }; | 403 }; |
401 | 404 |
402 } // namespace chromeos | 405 } // namespace chromeos |
403 | 406 |
404 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ | 407 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
OLD | NEW |