| 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 CHROMEOS_LOGIN_USER_NAMES_H_ | 5 #ifndef CHROMEOS_LOGIN_USER_NAMES_H_ |
| 6 #define CHROMEOS_LOGIN_USER_NAMES_H_ | 6 #define CHROMEOS_LOGIN_USER_NAMES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chromeos/chromeos_export.h" | 10 #include "chromeos/chromeos_export.h" |
| 11 | 11 |
| 12 namespace user_manager { |
| 13 class UserID; |
| 14 } |
| 15 |
| 12 namespace chromeos { | 16 namespace chromeos { |
| 13 | 17 |
| 14 namespace login { | 18 namespace login { |
| 15 | 19 |
| 16 // Username for stub login when not running on ChromeOS. | 20 // Username for stub login when not running on ChromeOS. |
| 17 CHROMEOS_EXPORT extern const char* kStubUser; | 21 CHROMEOS_EXPORT user_manager::UserID GetStubUserID(); |
| 18 | 22 |
| 19 // Username for the login screen. It is only used to identify login screen | 23 // User ID for the login screen. It is only used to identify login screen |
| 20 // tries to set default wallpaper. It is not a real user. | 24 // tries to set default wallpaper. It is not a real user. |
| 21 CHROMEOS_EXPORT extern const char* kSignInUser; | 25 CHROMEOS_EXPORT user_manager::UserID GetSignInUserID(); |
| 22 | 26 |
| 23 // Magic e-mail addresses are bad. They exist here because some code already | 27 // Magic e-mail addresses / user ids are bad. They exist here because some code |
| 24 // depends on them and it is hard to figure out what. Any user types added in | 28 // already depends on them and it is hard to figure out what. Any user types |
| 25 // the future should be identified by a new |UserType|, not a new magic e-mail | 29 // added in the future should be identified by a new |UserType|, not a new magic |
| 26 // address. | 30 // e-mail address. |
| 27 // Username for Guest session user. | 31 |
| 28 CHROMEOS_EXPORT extern const char* kGuestUserName; | 32 // Username for Guest session user (for UserID::Deserialize only). |
| 33 CHROMEOS_EXPORT extern const char* kLegacyGuestUserName; |
| 34 |
| 35 // User id for Guest session user. |
| 36 CHROMEOS_EXPORT user_manager::UserID GetGuestUserID(); |
| 29 | 37 |
| 30 // Domain that is used for all supervised users. | 38 // Domain that is used for all supervised users. |
| 31 CHROMEOS_EXPORT extern const char* kSupervisedUserDomain; | 39 CHROMEOS_EXPORT extern const char* kSupervisedUserDomain; |
| 32 | 40 |
| 33 // Canonicalizes a GAIA user ID, accounting for the legacy guest mode user ID | 41 // Canonicalizes a GAIA user ID, accounting for the legacy guest mode user ID |
| 34 // which does trips up gaia::CanonicalizeEmail() because it does not contain an | 42 // which does trips up gaia::CanonicalizeEmail() because it does not contain an |
| 35 // @ symbol. | 43 // @ symbol. |
| 36 CHROMEOS_EXPORT std::string CanonicalizeUserID(const std::string& user_id); | 44 CHROMEOS_EXPORT std::string CanonicalizeUserID(const std::string& user_id); |
| 37 | 45 |
| 38 } // namespace login | 46 } // namespace login |
| 39 | 47 |
| 40 } // namespace chromeos | 48 } // namespace chromeos |
| 41 | 49 |
| 42 #endif // CHROMEOS_LOGIN_USER_NAMES_H_ | 50 #endif // CHROMEOS_LOGIN_USER_NAMES_H_ |
| OLD | NEW |