| 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 "components/user_manager/user_manager_export.h" |
| 11 | 11 |
| 12 class AccountId; | 12 class AccountId; |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace user_manager { |
| 15 | |
| 16 namespace login { | |
| 17 | 15 |
| 18 // Username for stub login when not running on ChromeOS. | 16 // Username for stub login when not running on ChromeOS. |
| 19 CHROMEOS_EXPORT extern const char kStubUser[]; | 17 USER_MANAGER_EXPORT extern const char kStubUser[]; |
| 20 | 18 |
| 21 // Magic e-mail addresses are bad. They exist here because some code already | 19 // Magic e-mail addresses are bad. They exist here because some code already |
| 22 // depends on them and it is hard to figure out what. Any user types added in | 20 // depends on them and it is hard to figure out what. Any user types added in |
| 23 // the future should be identified by a new |UserType|, not a new magic e-mail | 21 // the future should be identified by a new |UserType|, not a new magic e-mail |
| 24 // address. | 22 // address. |
| 25 // Username for Guest session user. | 23 // Username for Guest session user. |
| 26 CHROMEOS_EXPORT extern const char kGuestUserName[]; | 24 USER_MANAGER_EXPORT extern const char kGuestUserName[]; |
| 27 | 25 |
| 28 // Domain that is used for all supervised users. | 26 // Domain that is used for all supervised users. |
| 29 CHROMEOS_EXPORT extern const char kSupervisedUserDomain[]; | 27 USER_MANAGER_EXPORT extern const char kSupervisedUserDomain[]; |
| 30 | 28 |
| 31 // Canonicalizes a GAIA user ID, accounting for the legacy guest mode user ID | 29 // Canonicalizes a GAIA user ID, accounting for the legacy guest mode user ID |
| 32 // which does trips up gaia::CanonicalizeEmail() because it does not contain an | 30 // which does trips up gaia::CanonicalizeEmail() because it does not contain an |
| 33 // @ symbol. | 31 // @ symbol. |
| 34 CHROMEOS_EXPORT std::string CanonicalizeUserID(const std::string& user_id); | 32 USER_MANAGER_EXPORT std::string CanonicalizeUserID(const std::string& user_id); |
| 35 | 33 |
| 36 CHROMEOS_EXPORT const AccountId& StubAccountId(); | 34 USER_MANAGER_EXPORT const AccountId& StubAccountId(); |
| 37 | 35 |
| 38 // AccountId for the login screen. It identifies ephemeral profile that is used | 36 // AccountId for the login screen. It identifies ephemeral profile that is used |
| 39 // to display WebUI during OOBE and SignIn. | 37 // to display WebUI during OOBE and SignIn. |
| 40 CHROMEOS_EXPORT const AccountId& SignInAccountId(); | 38 USER_MANAGER_EXPORT const AccountId& SignInAccountId(); |
| 41 | 39 |
| 42 CHROMEOS_EXPORT const AccountId& GuestAccountId(); | 40 USER_MANAGER_EXPORT const AccountId& GuestAccountId(); |
| 43 | 41 |
| 44 CHROMEOS_EXPORT const AccountId& DemoAccountId(); | 42 USER_MANAGER_EXPORT const AccountId& DemoAccountId(); |
| 45 | 43 |
| 46 } // namespace login | 44 } // namespace user_manager |
| 47 | |
| 48 } // namespace chromeos | |
| 49 | 45 |
| 50 #endif // CHROMEOS_LOGIN_USER_NAMES_H_ | 46 #endif // CHROMEOS_LOGIN_USER_NAMES_H_ |
| OLD | NEW |