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 ASH_SESSION_SESSION_CONTROLLER_H_ | 5 #ifndef ASH_SESSION_SESSION_CONTROLLER_H_ |
6 #define ASH_SESSION_SESSION_CONTROLLER_H_ | 6 #define ASH_SESSION_SESSION_CONTROLLER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // NOTE: Prefer GetSessionState() in new code because the concept of | 113 // NOTE: Prefer GetSessionState() in new code because the concept of |
114 // SessionState more closes matches the state in chrome. | 114 // SessionState more closes matches the state in chrome. |
115 LoginStatus login_status() const { return login_status_; } | 115 LoginStatus login_status() const { return login_status_; } |
116 | 116 |
117 // mojom::SessionController | 117 // mojom::SessionController |
118 void SetClient(mojom::SessionControllerClientPtr client) override; | 118 void SetClient(mojom::SessionControllerClientPtr client) override; |
119 void SetSessionInfo(mojom::SessionInfoPtr info) override; | 119 void SetSessionInfo(mojom::SessionInfoPtr info) override; |
120 void UpdateUserSession(mojom::UserSessionPtr user_session) override; | 120 void UpdateUserSession(mojom::UserSessionPtr user_session) override; |
121 void SetUserSessionOrder( | 121 void SetUserSessionOrder( |
122 const std::vector<uint32_t>& user_session_order) override; | 122 const std::vector<uint32_t>& user_session_order) override; |
123 void StartLock(const StartLockCallback& callback) override; | 123 void StartLock(StartLockCallback callback) override; |
124 void NotifyChromeLockAnimationsComplete() override; | 124 void NotifyChromeLockAnimationsComplete() override; |
125 void RunUnlockAnimation(const RunUnlockAnimationCallback& callback) override; | 125 void RunUnlockAnimation(RunUnlockAnimationCallback callback) override; |
126 void NotifyChromeTerminating() override; | 126 void NotifyChromeTerminating() override; |
127 | 127 |
128 // Test helpers. | 128 // Test helpers. |
129 void ClearUserSessionsForTest(); | 129 void ClearUserSessionsForTest(); |
130 void FlushMojoForTest(); | 130 void FlushMojoForTest(); |
131 void LockScreenAndFlushForTest(); | 131 void LockScreenAndFlushForTest(); |
132 | 132 |
133 private: | 133 private: |
134 void SetSessionState(session_manager::SessionState state); | 134 void SetSessionState(session_manager::SessionState state); |
135 void AddUserSession(mojom::UserSessionPtr user_session); | 135 void AddUserSession(mojom::UserSessionPtr user_session); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 base::ObserverList<ash::SessionObserver> observers_; | 183 base::ObserverList<ash::SessionObserver> observers_; |
184 | 184 |
185 base::WeakPtrFactory<SessionController> weak_ptr_factory_; | 185 base::WeakPtrFactory<SessionController> weak_ptr_factory_; |
186 | 186 |
187 DISALLOW_COPY_AND_ASSIGN(SessionController); | 187 DISALLOW_COPY_AND_ASSIGN(SessionController); |
188 }; | 188 }; |
189 | 189 |
190 } // namespace ash | 190 } // namespace ash |
191 | 191 |
192 #endif // ASH_SESSION_SESSION_CONTROLLER_H_ | 192 #endif // ASH_SESSION_SESSION_CONTROLLER_H_ |
OLD | NEW |