| 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 COMPONENTS_USER_MANAGER_USER_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_USER_H_ |
| 6 #define COMPONENTS_USER_MANAGER_USER_H_ | 6 #define COMPONENTS_USER_MANAGER_USER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 friend class chromeos::MockUserManager; | 163 friend class chromeos::MockUserManager; |
| 164 friend class chromeos::FakeLoginUtils; | 164 friend class chromeos::FakeLoginUtils; |
| 165 friend class chromeos::FakeUserManager; | 165 friend class chromeos::FakeUserManager; |
| 166 friend class chromeos::UserAddingScreenTest; | 166 friend class chromeos::UserAddingScreenTest; |
| 167 | 167 |
| 168 // Do not allow anyone else to create new User instances. | 168 // Do not allow anyone else to create new User instances. |
| 169 static User* CreateRegularUser(const std::string& email); | 169 static User* CreateRegularUser(const std::string& email); |
| 170 static User* CreateGuestUser(); | 170 static User* CreateGuestUser(); |
| 171 static User* CreateKioskAppUser(const std::string& kiosk_app_username); | 171 static User* CreateKioskAppUser(const std::string& kiosk_app_username); |
| 172 static User* CreateSupervisedUser(const std::string& username); | 172 static User* CreateSupervisedUser(const std::string& username); |
| 173 static User* CreateRetailModeUser(); | |
| 174 static User* CreatePublicAccountUser(const std::string& email); | 173 static User* CreatePublicAccountUser(const std::string& email); |
| 175 | 174 |
| 176 explicit User(const std::string& email); | 175 explicit User(const std::string& email); |
| 177 virtual ~User(); | 176 virtual ~User(); |
| 178 | 177 |
| 179 const std::string* GetAccountLocale() const { return account_locale_.get(); } | 178 const std::string* GetAccountLocale() const { return account_locale_.get(); } |
| 180 | 179 |
| 181 // Setters are private so only UserManager can call them. | 180 // Setters are private so only UserManager can call them. |
| 182 void SetAccountLocale(const std::string& resolved_account_locale); | 181 void SetAccountLocale(const std::string& resolved_account_locale); |
| 183 | 182 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 271 |
| 273 DISALLOW_COPY_AND_ASSIGN(User); | 272 DISALLOW_COPY_AND_ASSIGN(User); |
| 274 }; | 273 }; |
| 275 | 274 |
| 276 // List of known users. | 275 // List of known users. |
| 277 typedef std::vector<User*> UserList; | 276 typedef std::vector<User*> UserList; |
| 278 | 277 |
| 279 } // namespace user_manager | 278 } // namespace user_manager |
| 280 | 279 |
| 281 #endif // COMPONENTS_USER_MANAGER_USER_H_ | 280 #endif // COMPONENTS_USER_MANAGER_USER_H_ |
| OLD | NEW |