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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "chrome/browser/chromeos/base/locale_util.h" | 16 #include "chrome/browser/chromeos/base/locale_util.h" |
17 #include "chrome/browser/chromeos/eol_notification.h" | 17 #include "chrome/browser/chromeos/eol_notification.h" |
18 #include "chrome/browser/chromeos/hats/hats_notification_controller.h" | 18 #include "chrome/browser/chromeos/hats/hats_notification_controller.h" |
| 19 #include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_notification_c
ontroller.h" |
19 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" | 20 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" |
20 #include "chrome/browser/chromeos/login/signin/token_handle_util.h" | 21 #include "chrome/browser/chromeos/login/signin/token_handle_util.h" |
21 #include "chromeos/dbus/session_manager_client.h" | 22 #include "chromeos/dbus/session_manager_client.h" |
22 #include "chromeos/login/auth/authenticator.h" | 23 #include "chromeos/login/auth/authenticator.h" |
23 #include "chromeos/login/auth/user_context.h" | 24 #include "chromeos/login/auth/user_context.h" |
24 #include "components/user_manager/user.h" | 25 #include "components/user_manager/user.h" |
25 #include "components/user_manager/user_manager.h" | 26 #include "components/user_manager/user_manager.h" |
26 #include "net/base/network_change_notifier.h" | 27 #include "net/base/network_change_notifier.h" |
27 #include "ui/base/ime/chromeos/input_method_manager.h" | 28 #include "ui/base/ime/chromeos/input_method_manager.h" |
28 | 29 |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 std::string chrome_client_secret_; | 469 std::string chrome_client_secret_; |
469 | 470 |
470 // Per-user-session Input Methods states. | 471 // Per-user-session Input Methods states. |
471 std::map<Profile*, scoped_refptr<input_method::InputMethodManager::State>, | 472 std::map<Profile*, scoped_refptr<input_method::InputMethodManager::State>, |
472 ProfileCompare> default_ime_states_; | 473 ProfileCompare> default_ime_states_; |
473 | 474 |
474 // Per-user-session EndofLife Notification | 475 // Per-user-session EndofLife Notification |
475 std::map<Profile*, std::unique_ptr<EolNotification>, ProfileCompare> | 476 std::map<Profile*, std::unique_ptr<EolNotification>, ProfileCompare> |
476 eol_notification_handler_; | 477 eol_notification_handler_; |
477 | 478 |
| 479 // Per-user-session Quick Unlock Feature Notification |
| 480 std::map<Profile*, |
| 481 scoped_refptr<QuickUnlockNotificationController>, |
| 482 ProfileCompare> |
| 483 quick_unlock_notification_handler_; |
| 484 |
478 // Manages Easy unlock cryptohome keys. | 485 // Manages Easy unlock cryptohome keys. |
479 std::unique_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; | 486 std::unique_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; |
480 bool running_easy_unlock_key_ops_; | 487 bool running_easy_unlock_key_ops_; |
481 base::Closure easy_unlock_key_ops_finished_callback_; | 488 base::Closure easy_unlock_key_ops_finished_callback_; |
482 | 489 |
483 // Whether should fetch token handles, tests may override this value. | 490 // Whether should fetch token handles, tests may override this value. |
484 bool should_obtain_handles_; | 491 bool should_obtain_handles_; |
485 | 492 |
486 std::unique_ptr<TokenHandleUtil> token_handle_util_; | 493 std::unique_ptr<TokenHandleUtil> token_handle_util_; |
487 std::unique_ptr<TokenHandleFetcher> token_handle_fetcher_; | 494 std::unique_ptr<TokenHandleFetcher> token_handle_fetcher_; |
488 | 495 |
489 // Whether should launch browser, tests may override this value. | 496 // Whether should launch browser, tests may override this value. |
490 bool should_launch_browser_; | 497 bool should_launch_browser_; |
491 | 498 |
492 // Child account status is necessary for InitializeStartUrls call. | 499 // Child account status is necessary for InitializeStartUrls call. |
493 bool waiting_for_child_account_status_; | 500 bool waiting_for_child_account_status_; |
494 | 501 |
495 scoped_refptr<typename HatsNotificationController::HatsNotificationController> | 502 scoped_refptr<typename HatsNotificationController::HatsNotificationController> |
496 hats_notification_controller_; | 503 hats_notification_controller_; |
497 | 504 |
498 base::WeakPtrFactory<UserSessionManager> weak_factory_; | 505 base::WeakPtrFactory<UserSessionManager> weak_factory_; |
499 | 506 |
500 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); | 507 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); |
501 }; | 508 }; |
502 | 509 |
503 } // namespace chromeos | 510 } // namespace chromeos |
504 | 511 |
505 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ | 512 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ |
OLD | NEW |