| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 // Returns true if at least one user has signed in. | 264 // Returns true if at least one user has signed in. |
| 265 virtual bool IsUserLoggedIn() const = 0; | 265 virtual bool IsUserLoggedIn() const = 0; |
| 266 | 266 |
| 267 // Returns true if we're logged in as a user with gaia account. | 267 // Returns true if we're logged in as a user with gaia account. |
| 268 virtual bool IsLoggedInAsUserWithGaiaAccount() const = 0; | 268 virtual bool IsLoggedInAsUserWithGaiaAccount() const = 0; |
| 269 | 269 |
| 270 // Returns true if we're logged in as a child user. | 270 // Returns true if we're logged in as a child user. |
| 271 virtual bool IsLoggedInAsChildUser() const = 0; | 271 virtual bool IsLoggedInAsChildUser() const = 0; |
| 272 | 272 |
| 273 // Returns true if we're logged in as a demo user. | |
| 274 virtual bool IsLoggedInAsDemoUser() const = 0; | |
| 275 | |
| 276 // Returns true if we're logged in as a public account. | 273 // Returns true if we're logged in as a public account. |
| 277 virtual bool IsLoggedInAsPublicAccount() const = 0; | 274 virtual bool IsLoggedInAsPublicAccount() const = 0; |
| 278 | 275 |
| 279 // Returns true if we're logged in as a Guest. | 276 // Returns true if we're logged in as a Guest. |
| 280 virtual bool IsLoggedInAsGuest() const = 0; | 277 virtual bool IsLoggedInAsGuest() const = 0; |
| 281 | 278 |
| 282 // Returns true if we're logged in as a legacy supervised user. | 279 // Returns true if we're logged in as a legacy supervised user. |
| 283 virtual bool IsLoggedInAsSupervisedUser() const = 0; | 280 virtual bool IsLoggedInAsSupervisedUser() const = 0; |
| 284 | 281 |
| 285 // Returns true if we're logged in as a kiosk app. | 282 // Returns true if we're logged in as a kiosk app. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 static UserManager* GetForTesting(); | 329 static UserManager* GetForTesting(); |
| 333 | 330 |
| 334 // Sets UserManager instance to the given |user_manager|. | 331 // Sets UserManager instance to the given |user_manager|. |
| 335 // Returns the previous value of the instance. | 332 // Returns the previous value of the instance. |
| 336 static UserManager* SetForTesting(UserManager* user_manager); | 333 static UserManager* SetForTesting(UserManager* user_manager); |
| 337 }; | 334 }; |
| 338 | 335 |
| 339 } // namespace user_manager | 336 } // namespace user_manager |
| 340 | 337 |
| 341 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_ | 338 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_ |
| OLD | NEW |