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 CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/chromeos/login/user_flow.h" | 10 #include "chrome/browser/chromeos/login/user_flow.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 const std::string& locale() const { return locale_; } | 68 const std::string& locale() const { return locale_; } |
69 | 69 |
70 private: | 70 private: |
71 const base::string16 display_name_; | 71 const base::string16 display_name_; |
72 const base::string16 given_name_; | 72 const base::string16 given_name_; |
73 const std::string locale_; | 73 const std::string locale_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(UserAccountData); | 75 DISALLOW_COPY_AND_ASSIGN(UserAccountData); |
76 }; | 76 }; |
77 | 77 |
78 // Username for stub login when not running on ChromeOS. | |
79 static const char kStubUser[]; | |
80 | |
81 // Username for the login screen. It is only used to identify login screen | |
82 // tries to set default wallpaper. It is not a real user. | |
83 static const char kSignInUser[]; | |
84 | |
85 // Magic e-mail addresses are bad. They exist here because some code already | |
86 // depends on them and it is hard to figure out what. Any user types added in | |
87 // the future should be identified by a new |UserType|, not a new magic e-mail | |
88 // address. | |
89 // Username for Guest session user. | |
90 static const char kGuestUserName[]; | |
91 | |
92 // Domain that is used for all locally managed users. | |
93 static const char kLocallyManagedUserDomain[]; | |
94 | |
95 // The retail mode user has a magic, domainless e-mail address. | |
96 static const char kRetailModeUserName[]; | |
97 | |
98 // Creates the singleton instance. This method is not thread-safe and must be | 78 // Creates the singleton instance. This method is not thread-safe and must be |
99 // called from the main UI thread. | 79 // called from the main UI thread. |
100 static void Initialize(); | 80 static void Initialize(); |
101 | 81 |
102 // Checks whether the singleton instance has been created already. This method | 82 // Checks whether the singleton instance has been created already. This method |
103 // is not thread-safe and must be called from the main UI thread. | 83 // is not thread-safe and must be called from the main UI thread. |
104 static bool IsInitialized(); | 84 static bool IsInitialized(); |
105 | 85 |
106 // Shuts down the UserManager. After this method has been called, the | 86 // Shuts down the UserManager. After this method has been called, the |
107 // singleton has unregistered itself as an observer but remains available so | 87 // singleton has unregistered itself as an observer but remains available so |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 ScopedTestUserManager(); | 357 ScopedTestUserManager(); |
378 ~ScopedTestUserManager(); | 358 ~ScopedTestUserManager(); |
379 | 359 |
380 private: | 360 private: |
381 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); | 361 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); |
382 }; | 362 }; |
383 | 363 |
384 } // namespace chromeos | 364 } // namespace chromeos |
385 | 365 |
386 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ | 366 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ |
OLD | NEW |