user_names.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. #ifndef COMPONENTS_USER_MANAGER_USER_NAMES_H_
  5. #define COMPONENTS_USER_MANAGER_USER_NAMES_H_
  6. #include <string>
  7. #include "components/user_manager/user_manager_export.h"
  8. class AccountId;
  9. namespace user_manager {
  10. // Stub Gaia user name. For tests and CrOS on Linux dev build only.
  11. USER_MANAGER_EXPORT extern const char kStubUserEmail[];
  12. // Stub Gaia user id. For tests and CrOS on Linux dev build only.
  13. USER_MANAGER_EXPORT extern const char kStubUserId[];
  14. // Stub Active Directory user name. For tests only.
  15. USER_MANAGER_EXPORT extern const char kStubAdUserEmail[];
  16. // Stub Active Directory user object GUID. For tests only.
  17. USER_MANAGER_EXPORT extern const char kStubAdUserObjGuid[];
  18. // Magic e-mail addresses are bad. They exist here because some code already
  19. // depends on them and it is hard to figure out what. Any user types added in
  20. // the future should be identified by a new |UserType|, not a new magic e-mail
  21. // address.
  22. // Username for Guest session user.
  23. USER_MANAGER_EXPORT extern const char kGuestUserName[];
  24. // Domain that is used for all supervised users.
  25. USER_MANAGER_EXPORT extern const char kSupervisedUserDomain[];
  26. // Canonicalizes a GAIA user ID, accounting for the legacy guest mode user ID
  27. // which does trips up gaia::CanonicalizeEmail() because it does not contain an
  28. // @ symbol.
  29. USER_MANAGER_EXPORT std::string CanonicalizeUserID(const std::string& user_id);
  30. // Stub account id for a Gaia user.
  31. USER_MANAGER_EXPORT const AccountId& StubAccountId();
  32. // Stub account id for an Active Directory user.
  33. USER_MANAGER_EXPORT const AccountId& StubAdAccountId();
  34. // AccountId for the login screen. It identifies ephemeral profile that is used
  35. // to display WebUI during OOBE and SignIn.
  36. USER_MANAGER_EXPORT const AccountId& SignInAccountId();
  37. USER_MANAGER_EXPORT const AccountId& GuestAccountId();
  38. USER_MANAGER_EXPORT const AccountId& DemoAccountId();
  39. } // namespace user_manager
  40. #endif // COMPONENTS_USER_MANAGER_USER_NAMES_H_