OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_UI_ASH_SESSION_CONTROLLER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_ |
6 #define CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_ | 6 #define CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_ |
7 | 7 |
8 #include "ash/public/interfaces/session_controller.mojom.h" | 8 #include "ash/public/interfaces/session_controller.mojom.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/session_manager/core/session_manager_observer.h" | 10 #include "components/session_manager/core/session_manager_observer.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class SessionControllerClient | 25 class SessionControllerClient |
26 : public ash::mojom::SessionControllerClient, | 26 : public ash::mojom::SessionControllerClient, |
27 public user_manager::UserManager::UserSessionStateObserver, | 27 public user_manager::UserManager::UserSessionStateObserver, |
28 public session_manager::SessionManagerObserver { | 28 public session_manager::SessionManagerObserver { |
29 public: | 29 public: |
30 SessionControllerClient(); | 30 SessionControllerClient(); |
31 ~SessionControllerClient() override; | 31 ~SessionControllerClient() override; |
32 | 32 |
33 // ash::mojom::SessionControllerClient: | 33 // ash::mojom::SessionControllerClient: |
34 void RequestLockScreen() override; | 34 void RequestLockScreen() override; |
35 void SwitchActiveUser(const std::string& serialized_account_id) override; | 35 void SwitchActiveUser(const AccountId& account_id) override; |
36 void CycleActiveUser(bool next_user) override; | 36 void CycleActiveUser(bool next_user) override; |
37 | 37 |
38 // user_manager::UserManager::UserSessionStateObserver: | 38 // user_manager::UserManager::UserSessionStateObserver: |
39 void ActiveUserChanged(const user_manager::User* active_user) override; | 39 void ActiveUserChanged(const user_manager::User* active_user) override; |
40 void UserAddedToSession(const user_manager::User* added_user) override; | 40 void UserAddedToSession(const user_manager::User* added_user) override; |
41 | 41 |
42 // session_manager::SessionManagerObserver: | 42 // session_manager::SessionManagerObserver: |
43 void OnSessionStateChanged() override; | 43 void OnSessionStateChanged() override; |
44 | 44 |
45 // TODO(xiyuan): Remove after SessionStateDelegateChromeOS is gone. | 45 // TODO(xiyuan): Remove after SessionStateDelegateChromeOS is gone. |
(...skipping 29 matching lines...) Expand all Loading... |
75 | 75 |
76 // Whether the primary user session info is sent to ash. | 76 // Whether the primary user session info is sent to ash. |
77 bool primary_user_session_sent_ = false; | 77 bool primary_user_session_sent_ = false; |
78 | 78 |
79 ash::mojom::SessionInfoPtr last_sent_session_info_; | 79 ash::mojom::SessionInfoPtr last_sent_session_info_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(SessionControllerClient); | 81 DISALLOW_COPY_AND_ASSIGN(SessionControllerClient); |
82 }; | 82 }; |
83 | 83 |
84 #endif // CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_ | 84 #endif // CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_ |
OLD | NEW |