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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "components/user_manager/user_image/user_image.h" | 13 #include "components/user_manager/user_image/user_image.h" |
14 #include "components/user_manager/user_info.h" | 14 #include "components/user_manager/user_info.h" |
15 #include "components/user_manager/user_manager_export.h" | 15 #include "components/user_manager/user_manager_export.h" |
16 #include "components/user_manager/user_type.h" | 16 #include "components/user_manager/user_type.h" |
17 #include "third_party/skia/include/core/SkBitmap.h" | 17 #include "third_party/skia/include/core/SkBitmap.h" |
18 #include "ui/gfx/image/image_skia.h" | 18 #include "ui/gfx/image/image_skia.h" |
19 | 19 |
20 namespace chromeos { | 20 namespace chromeos { |
21 class ChromeUserManagerImpl; | 21 class ChromeUserManagerImpl; |
22 class FakeLoginUtils; | |
23 class FakeChromeUserManager; | 22 class FakeChromeUserManager; |
24 class MockUserManager; | 23 class MockUserManager; |
25 class SupervisedUserManagerImpl; | 24 class SupervisedUserManagerImpl; |
26 class UserAddingScreenTest; | 25 class UserAddingScreenTest; |
27 class UserImageManagerImpl; | 26 class UserImageManagerImpl; |
28 class UserSessionManager; | 27 class UserSessionManager; |
29 } | 28 } |
30 | 29 |
31 namespace user_manager { | 30 namespace user_manager { |
32 | 31 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 friend class UserManagerBase; | 165 friend class UserManagerBase; |
167 friend class chromeos::ChromeUserManagerImpl; | 166 friend class chromeos::ChromeUserManagerImpl; |
168 friend class chromeos::SupervisedUserManagerImpl; | 167 friend class chromeos::SupervisedUserManagerImpl; |
169 friend class chromeos::UserImageManagerImpl; | 168 friend class chromeos::UserImageManagerImpl; |
170 friend class chromeos::UserSessionManager; | 169 friend class chromeos::UserSessionManager; |
171 | 170 |
172 // For testing: | 171 // For testing: |
173 friend class FakeUserManager; | 172 friend class FakeUserManager; |
174 friend class chromeos::FakeChromeUserManager; | 173 friend class chromeos::FakeChromeUserManager; |
175 friend class chromeos::MockUserManager; | 174 friend class chromeos::MockUserManager; |
176 friend class chromeos::FakeLoginUtils; | |
177 friend class chromeos::UserAddingScreenTest; | 175 friend class chromeos::UserAddingScreenTest; |
178 | 176 |
179 // Do not allow anyone else to create new User instances. | 177 // Do not allow anyone else to create new User instances. |
180 static User* CreateRegularUser(const std::string& email); | 178 static User* CreateRegularUser(const std::string& email); |
181 static User* CreateGuestUser(); | 179 static User* CreateGuestUser(); |
182 static User* CreateKioskAppUser(const std::string& kiosk_app_username); | 180 static User* CreateKioskAppUser(const std::string& kiosk_app_username); |
183 static User* CreateSupervisedUser(const std::string& username); | 181 static User* CreateSupervisedUser(const std::string& username); |
184 static User* CreatePublicAccountUser(const std::string& email); | 182 static User* CreatePublicAccountUser(const std::string& email); |
185 | 183 |
186 explicit User(const std::string& email); | 184 explicit User(const std::string& email); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 280 |
283 DISALLOW_COPY_AND_ASSIGN(User); | 281 DISALLOW_COPY_AND_ASSIGN(User); |
284 }; | 282 }; |
285 | 283 |
286 // List of known users. | 284 // List of known users. |
287 typedef std::vector<User*> UserList; | 285 typedef std::vector<User*> UserList; |
288 | 286 |
289 } // namespace user_manager | 287 } // namespace user_manager |
290 | 288 |
291 #endif // COMPONENTS_USER_MANAGER_USER_H_ | 289 #endif // COMPONENTS_USER_MANAGER_USER_H_ |
OLD | NEW |