| 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 // Returns true if the current user's session can be locked (i.e. the user has | 246 // Returns true if the current user's session can be locked (i.e. the user has |
| 247 // a password with which to unlock the session). | 247 // a password with which to unlock the session). |
| 248 virtual bool CanCurrentUserLock() const = 0; | 248 virtual bool CanCurrentUserLock() const = 0; |
| 249 | 249 |
| 250 // Returns true if at least one user has signed in. | 250 // Returns true if at least one user has signed in. |
| 251 virtual bool IsUserLoggedIn() const = 0; | 251 virtual bool IsUserLoggedIn() const = 0; |
| 252 | 252 |
| 253 // Returns true if we're logged in as a regular user. | 253 // Returns true if we're logged in as a regular user. |
| 254 virtual bool IsLoggedInAsRegularUser() const = 0; | 254 virtual bool IsLoggedInAsRegularUser() const = 0; |
| 255 | 255 |
| 256 // Returns true if we're logged in as a demo user. | |
| 257 virtual bool IsLoggedInAsDemoUser() const = 0; | |
| 258 | |
| 259 // Returns true if we're logged in as a public account. | 256 // Returns true if we're logged in as a public account. |
| 260 virtual bool IsLoggedInAsPublicAccount() const = 0; | 257 virtual bool IsLoggedInAsPublicAccount() const = 0; |
| 261 | 258 |
| 262 // Returns true if we're logged in as a Guest. | 259 // Returns true if we're logged in as a Guest. |
| 263 virtual bool IsLoggedInAsGuest() const = 0; | 260 virtual bool IsLoggedInAsGuest() const = 0; |
| 264 | 261 |
| 265 // Returns true if we're logged in as a supervised user. | 262 // Returns true if we're logged in as a supervised user. |
| 266 virtual bool IsLoggedInAsSupervisedUser() const = 0; | 263 virtual bool IsLoggedInAsSupervisedUser() const = 0; |
| 267 | 264 |
| 268 // Returns true if we're logged in as a kiosk app. | 265 // Returns true if we're logged in as a kiosk app. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 static UserManager* GetForTesting(); | 311 static UserManager* GetForTesting(); |
| 315 | 312 |
| 316 // Sets UserManager instance to the given |user_manager|. | 313 // Sets UserManager instance to the given |user_manager|. |
| 317 // Returns the previous value of the instance. | 314 // Returns the previous value of the instance. |
| 318 static UserManager* SetForTesting(UserManager* user_manager); | 315 static UserManager* SetForTesting(UserManager* user_manager); |
| 319 }; | 316 }; |
| 320 | 317 |
| 321 } // namespace user_manager | 318 } // namespace user_manager |
| 322 | 319 |
| 323 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_ | 320 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_ |
| OLD | NEW |