| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 friend class FakeUserManager; | 189 friend class FakeUserManager; |
| 190 friend class chromeos::FakeChromeUserManager; | 190 friend class chromeos::FakeChromeUserManager; |
| 191 friend class chromeos::MockUserManager; | 191 friend class chromeos::MockUserManager; |
| 192 friend class chromeos::UserAddingScreenTest; | 192 friend class chromeos::UserAddingScreenTest; |
| 193 FRIEND_TEST_ALL_PREFIXES(UserTest, DeviceLocalAccountAffiliation); | 193 FRIEND_TEST_ALL_PREFIXES(UserTest, DeviceLocalAccountAffiliation); |
| 194 | 194 |
| 195 // Do not allow anyone else to create new User instances. | 195 // Do not allow anyone else to create new User instances. |
| 196 static User* CreateRegularUser(const AccountId& account_id); | 196 static User* CreateRegularUser(const AccountId& account_id); |
| 197 static User* CreateGuestUser(const AccountId& guest_account_id); | 197 static User* CreateGuestUser(const AccountId& guest_account_id); |
| 198 static User* CreateKioskAppUser(const AccountId& kiosk_app_account_id); | 198 static User* CreateKioskAppUser(const AccountId& kiosk_app_account_id); |
| 199 static User* CreateArcKioskAppUser(const AccountId& arc_kiosk_account_id); |
| 199 static User* CreateSupervisedUser(const AccountId& account_id); | 200 static User* CreateSupervisedUser(const AccountId& account_id); |
| 200 static User* CreatePublicAccountUser(const AccountId& account_id); | 201 static User* CreatePublicAccountUser(const AccountId& account_id); |
| 201 | 202 |
| 202 const std::string* GetAccountLocale() const { return account_locale_.get(); } | 203 const std::string* GetAccountLocale() const { return account_locale_.get(); } |
| 203 | 204 |
| 204 // Setters are private so only UserManager can call them. | 205 // Setters are private so only UserManager can call them. |
| 205 void SetAccountLocale(const std::string& resolved_account_locale); | 206 void SetAccountLocale(const std::string& resolved_account_locale); |
| 206 | 207 |
| 207 void SetImage(std::unique_ptr<UserImage> user_image, int image_index); | 208 void SetImage(std::unique_ptr<UserImage> user_image, int image_index); |
| 208 | 209 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 304 |
| 304 DISALLOW_COPY_AND_ASSIGN(User); | 305 DISALLOW_COPY_AND_ASSIGN(User); |
| 305 }; | 306 }; |
| 306 | 307 |
| 307 // List of known users. | 308 // List of known users. |
| 308 using UserList = std::vector<User*>; | 309 using UserList = std::vector<User*>; |
| 309 | 310 |
| 310 } // namespace user_manager | 311 } // namespace user_manager |
| 311 | 312 |
| 312 #endif // COMPONENTS_USER_MANAGER_USER_H_ | 313 #endif // COMPONENTS_USER_MANAGER_USER_H_ |
| OLD | NEW |