Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Side by Side Diff: ash/session/session_controller.h

Issue 2830933002: cros: Use SessionController for lock starting code (Closed)
Patch Set: update comment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // NOTE: Prefer GetSessionState() in new code because the concept of 103 // NOTE: Prefer GetSessionState() in new code because the concept of
104 // SessionState more closes matches the state in chrome. 104 // SessionState more closes matches the state in chrome.
105 LoginStatus login_status() const { return login_status_; } 105 LoginStatus login_status() const { return login_status_; }
106 106
107 // mojom::SessionController 107 // mojom::SessionController
108 void SetClient(mojom::SessionControllerClientPtr client) override; 108 void SetClient(mojom::SessionControllerClientPtr client) override;
109 void SetSessionInfo(mojom::SessionInfoPtr info) override; 109 void SetSessionInfo(mojom::SessionInfoPtr info) override;
110 void UpdateUserSession(mojom::UserSessionPtr user_session) override; 110 void UpdateUserSession(mojom::UserSessionPtr user_session) override;
111 void SetUserSessionOrder( 111 void SetUserSessionOrder(
112 const std::vector<uint32_t>& user_session_order) override; 112 const std::vector<uint32_t>& user_session_order) override;
113 void RunLockAnimation(const RunLockAnimationCallback& callback) override;
113 void RunUnlockAnimation(const RunUnlockAnimationCallback& callback) override; 114 void RunUnlockAnimation(const RunUnlockAnimationCallback& callback) override;
114 void NotifyChromeTerminating() override; 115 void NotifyChromeTerminating() override;
115 116
116 // Test helpers. 117 // Test helpers.
117 void ClearUserSessionsForTest(); 118 void ClearUserSessionsForTest();
118 void FlushMojoForTest(); 119 void FlushMojoForTest();
119 void LockScreenAndFlushForTest(); 120 void LockScreenAndFlushForTest();
120 121
121 private: 122 private:
122 void SetSessionState(session_manager::SessionState state); 123 void SetSessionState(session_manager::SessionState state);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 bool is_unlocking_ = false; 162 bool is_unlocking_ = false;
162 163
163 base::ObserverList<ash::SessionObserver> observers_; 164 base::ObserverList<ash::SessionObserver> observers_;
164 165
165 DISALLOW_COPY_AND_ASSIGN(SessionController); 166 DISALLOW_COPY_AND_ASSIGN(SessionController);
166 }; 167 };
167 168
168 } // namespace ash 169 } // namespace ash
169 170
170 #endif // ASH_SESSION_SESSION_CONTROLLER_H_ 171 #endif // ASH_SESSION_SESSION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698