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

Side by Side Diff: chrome/browser/chromeos/login/lock/screen_locker.h

Issue 2830933002: cros: Use SessionController for lock starting code (Closed)
Patch Set: fix nit 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
« no previous file with comments | « ash/wm/lock_state_controller.cc ('k') | chrome/browser/chromeos/login/lock/screen_locker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_LOCK_SCREEN_LOCKER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Called when screen locker is safe to delete. 139 // Called when screen locker is safe to delete.
140 static void ScheduleDeletion(); 140 static void ScheduleDeletion();
141 141
142 // Returns true if |account_id| is found among logged in users. 142 // Returns true if |account_id| is found among logged in users.
143 bool IsUserLoggedIn(const AccountId& account_id) const; 143 bool IsUserLoggedIn(const AccountId& account_id) const;
144 144
145 // Looks up user in unlock user list. 145 // Looks up user in unlock user list.
146 const user_manager::User* FindUnlockUser(const AccountId& account_id); 146 const user_manager::User* FindUnlockUser(const AccountId& account_id);
147 147
148 // Callback to be invoked for ash start lock request. |locked| is true when
149 // ash is fully locked and post lock animation finishes. Otherwise, the start
150 // lock request is failed.
151 void OnStartLockCallback(bool locked);
152
148 // WebUIScreenLocker instance in use. 153 // WebUIScreenLocker instance in use.
149 std::unique_ptr<WebUIScreenLocker> web_ui_; 154 std::unique_ptr<WebUIScreenLocker> web_ui_;
150 155
151 // Users that can unlock the device. 156 // Users that can unlock the device.
152 user_manager::UserList users_; 157 user_manager::UserList users_;
153 158
154 // Used to authenticate the user to unlock. 159 // Used to authenticate the user to unlock.
155 scoped_refptr<Authenticator> authenticator_; 160 scoped_refptr<Authenticator> authenticator_;
156 161
157 // Used to authenticate the user to unlock supervised users. 162 // Used to authenticate the user to unlock supervised users.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 scoped_refptr<input_method::InputMethodManager::State> saved_ime_state_; 196 scoped_refptr<input_method::InputMethodManager::State> saved_ime_state_;
192 197
193 base::WeakPtrFactory<ScreenLocker> weak_factory_; 198 base::WeakPtrFactory<ScreenLocker> weak_factory_;
194 199
195 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); 200 DISALLOW_COPY_AND_ASSIGN(ScreenLocker);
196 }; 201 };
197 202
198 } // namespace chromeos 203 } // namespace chromeos
199 204
200 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ 205 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_
OLDNEW
« no previous file with comments | « ash/wm/lock_state_controller.cc ('k') | chrome/browser/chromeos/login/lock/screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698