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 COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ |
6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ | 6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 | 389 |
390 // Cached flag indicating whether the ephemeral user policy is enabled. | 390 // Cached flag indicating whether the ephemeral user policy is enabled. |
391 // Defaults to |false| if the value has not been read from trusted device | 391 // Defaults to |false| if the value has not been read from trusted device |
392 // policy yet. | 392 // policy yet. |
393 bool ephemeral_users_enabled_; | 393 bool ephemeral_users_enabled_; |
394 | 394 |
395 // Cached name of device owner. Defaults to empty string if the value has not | 395 // Cached name of device owner. Defaults to empty string if the value has not |
396 // been read from trusted device policy yet. | 396 // been read from trusted device policy yet. |
397 std::string owner_email_; | 397 std::string owner_email_; |
398 | 398 |
399 ObserverList<UserManager::Observer> observer_list_; | 399 base::ObserverList<UserManager::Observer> observer_list_; |
400 | 400 |
401 // TODO(nkostylev): Merge with session state refactoring CL. | 401 // TODO(nkostylev): Merge with session state refactoring CL. |
402 ObserverList<UserManager::UserSessionStateObserver> | 402 base::ObserverList<UserManager::UserSessionStateObserver> |
403 session_state_observer_list_; | 403 session_state_observer_list_; |
404 | 404 |
405 // Time at which this object was created. | 405 // Time at which this object was created. |
406 base::TimeTicks manager_creation_time_; | 406 base::TimeTicks manager_creation_time_; |
407 | 407 |
408 // ID of the user just added to the session that needs to be activated | 408 // ID of the user just added to the session that needs to be activated |
409 // as soon as user's profile is loaded. | 409 // as soon as user's profile is loaded. |
410 std::string pending_user_switch_; | 410 std::string pending_user_switch_; |
411 | 411 |
412 // ID of the user that was active in the previous session. | 412 // ID of the user that was active in the previous session. |
413 // Preference value is stored here before first user signs in | 413 // Preference value is stored here before first user signs in |
414 // because pref will be overidden once session restore starts. | 414 // because pref will be overidden once session restore starts. |
415 std::string last_session_active_user_; | 415 std::string last_session_active_user_; |
416 bool last_session_active_user_initialized_; | 416 bool last_session_active_user_initialized_; |
417 | 417 |
418 // TaskRunner for UI thread. | 418 // TaskRunner for UI thread. |
419 scoped_refptr<base::TaskRunner> task_runner_; | 419 scoped_refptr<base::TaskRunner> task_runner_; |
420 | 420 |
421 // TaskRunner for SequencedWorkerPool. | 421 // TaskRunner for SequencedWorkerPool. |
422 scoped_refptr<base::TaskRunner> blocking_task_runner_; | 422 scoped_refptr<base::TaskRunner> blocking_task_runner_; |
423 | 423 |
424 base::WeakPtrFactory<UserManagerBase> weak_factory_; | 424 base::WeakPtrFactory<UserManagerBase> weak_factory_; |
425 | 425 |
426 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); | 426 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); |
427 }; | 427 }; |
428 | 428 |
429 } // namespace user_manager | 429 } // namespace user_manager |
430 | 430 |
431 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ | 431 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ |
OLD | NEW |