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

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

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 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 <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 // Sets the authenticator. 135 // Sets the authenticator.
136 void SetAuthenticator(Authenticator* authenticator); 136 void SetAuthenticator(Authenticator* authenticator);
137 137
138 // Called when the screen lock is ready. 138 // Called when the screen lock is ready.
139 void ScreenLockReady(); 139 void ScreenLockReady();
140 140
141 // Called when screen locker is safe to delete. 141 // Called when screen locker is safe to delete.
142 static void ScheduleDeletion(); 142 static void ScheduleDeletion();
143 143
144 // Returns true if |username| is found among logged in users. 144 // Returns true if |user_id| is found among logged in users.
145 bool IsUserLoggedIn(const std::string& username); 145 bool IsUserLoggedIn(const user_manager::UserID& user_id);
146 146
147 // Looks up user in unlock user list. 147 // Looks up user in unlock user list.
148 const user_manager::User* FindUnlockUser(const std::string& user_id); 148 const user_manager::User* FindUnlockUser(const user_manager::UserID& user_id);
149 149
150 // ScreenLockerDelegate instance in use. 150 // ScreenLockerDelegate instance in use.
151 scoped_ptr<ScreenLockerDelegate> delegate_; 151 scoped_ptr<ScreenLockerDelegate> delegate_;
152 152
153 // Users that can unlock the device. 153 // Users that can unlock the device.
154 user_manager::UserList users_; 154 user_manager::UserList users_;
155 155
156 // Used to authenticate the user to unlock. 156 // Used to authenticate the user to unlock.
157 scoped_refptr<Authenticator> authenticator_; 157 scoped_refptr<Authenticator> authenticator_;
158 158
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 scoped_refptr<input_method::InputMethodManager::State> saved_ime_state_; 190 scoped_refptr<input_method::InputMethodManager::State> saved_ime_state_;
191 191
192 base::WeakPtrFactory<ScreenLocker> weak_factory_; 192 base::WeakPtrFactory<ScreenLocker> weak_factory_;
193 193
194 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); 194 DISALLOW_COPY_AND_ASSIGN(ScreenLocker);
195 }; 195 };
196 196
197 } // namespace chromeos 197 } // namespace chromeos
198 198
199 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ 199 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698