OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROMEOS_LOGIN_USER_NAMES_H_ | |
6 #define CHROMEOS_LOGIN_USER_NAMES_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "chromeos/chromeos_export.h" | |
11 | |
12 class AccountId; | |
13 | |
14 namespace chromeos { | |
15 | |
16 namespace login { | |
17 | |
18 // Username for stub login when not running on ChromeOS. | |
19 CHROMEOS_EXPORT extern const char kStubUser[]; | |
20 | |
21 // 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 | |
23 // the future should be identified by a new |UserType|, not a new magic e-mail | |
24 // address. | |
25 // Username for Guest session user. | |
26 CHROMEOS_EXPORT extern const char kGuestUserName[]; | |
27 | |
28 // Domain that is used for all supervised users. | |
29 CHROMEOS_EXPORT extern const char kSupervisedUserDomain[]; | |
30 | |
31 // 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 | |
33 // @ symbol. | |
34 CHROMEOS_EXPORT std::string CanonicalizeUserID(const std::string& user_id); | |
35 | |
36 CHROMEOS_EXPORT const AccountId& StubAccountId(); | |
37 | |
38 // AccountId for the login screen. It identifies ephemeral profile that is used | |
39 // to display WebUI during OOBE and SignIn. | |
40 CHROMEOS_EXPORT const AccountId& SignInAccountId(); | |
41 | |
42 CHROMEOS_EXPORT const AccountId& GuestAccountId(); | |
43 | |
44 CHROMEOS_EXPORT const AccountId& DemoAccountId(); | |
45 | |
46 } // namespace login | |
47 | |
48 } // namespace chromeos | |
49 | |
50 #endif // CHROMEOS_LOGIN_USER_NAMES_H_ | |
OLD | NEW |