OLD | NEW |
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 COMPONENTS_USER_MANAGER_USER_MANAGER_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_USER_MANAGER_H_ |
6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_H_ | 6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "components/user_manager/user.h" | 10 #include "components/user_manager/user.h" |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // display email) is ephemeral. | 246 // display email) is ephemeral. |
247 virtual bool IsCurrentUserNonCryptohomeDataEphemeral() const = 0; | 247 virtual bool IsCurrentUserNonCryptohomeDataEphemeral() const = 0; |
248 | 248 |
249 // Returns true if the current user's session can be locked (i.e. the user has | 249 // Returns true if the current user's session can be locked (i.e. the user has |
250 // a password with which to unlock the session). | 250 // a password with which to unlock the session). |
251 virtual bool CanCurrentUserLock() const = 0; | 251 virtual bool CanCurrentUserLock() const = 0; |
252 | 252 |
253 // Returns true if at least one user has signed in. | 253 // Returns true if at least one user has signed in. |
254 virtual bool IsUserLoggedIn() const = 0; | 254 virtual bool IsUserLoggedIn() const = 0; |
255 | 255 |
256 // Returns true if we're logged in as a regular user. | 256 // Returns true if we're logged in as a user with gaia account. |
257 virtual bool IsLoggedInAsRegularUser() const = 0; | 257 virtual bool IsLoggedInAsUserWithGaiaAccount() const = 0; |
| 258 |
| 259 // Returns true if we're logged in as a regular supervised user. |
| 260 virtual bool IsLoggedInAsRegularSupervisedUser() const = 0; |
258 | 261 |
259 // Returns true if we're logged in as a demo user. | 262 // Returns true if we're logged in as a demo user. |
260 virtual bool IsLoggedInAsDemoUser() const = 0; | 263 virtual bool IsLoggedInAsDemoUser() const = 0; |
261 | 264 |
262 // Returns true if we're logged in as a public account. | 265 // Returns true if we're logged in as a public account. |
263 virtual bool IsLoggedInAsPublicAccount() const = 0; | 266 virtual bool IsLoggedInAsPublicAccount() const = 0; |
264 | 267 |
265 // Returns true if we're logged in as a Guest. | 268 // Returns true if we're logged in as a Guest. |
266 virtual bool IsLoggedInAsGuest() const = 0; | 269 virtual bool IsLoggedInAsGuest() const = 0; |
267 | 270 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 static UserManager* GetForTesting(); | 321 static UserManager* GetForTesting(); |
319 | 322 |
320 // Sets UserManager instance to the given |user_manager|. | 323 // Sets UserManager instance to the given |user_manager|. |
321 // Returns the previous value of the instance. | 324 // Returns the previous value of the instance. |
322 static UserManager* SetForTesting(UserManager* user_manager); | 325 static UserManager* SetForTesting(UserManager* user_manager); |
323 }; | 326 }; |
324 | 327 |
325 } // namespace user_manager | 328 } // namespace user_manager |
326 | 329 |
327 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_ | 330 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_ |
OLD | NEW |