Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: components/user_manager/user.h

Issue 745613002: [cros] Cleanup: remove LoginUtils (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn build Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 FakeUserManager; 22 class FakeUserManager;
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 162
164 protected: 163 protected:
165 friend class UserManagerBase; 164 friend class UserManagerBase;
166 friend class chromeos::ChromeUserManagerImpl; 165 friend class chromeos::ChromeUserManagerImpl;
167 friend class chromeos::SupervisedUserManagerImpl; 166 friend class chromeos::SupervisedUserManagerImpl;
168 friend class chromeos::UserImageManagerImpl; 167 friend class chromeos::UserImageManagerImpl;
169 friend class chromeos::UserSessionManager; 168 friend class chromeos::UserSessionManager;
170 169
171 // For testing: 170 // For testing:
172 friend class chromeos::MockUserManager; 171 friend class chromeos::MockUserManager;
173 friend class chromeos::FakeLoginUtils;
174 friend class chromeos::FakeUserManager; 172 friend class chromeos::FakeUserManager;
175 friend class chromeos::UserAddingScreenTest; 173 friend class chromeos::UserAddingScreenTest;
176 174
177 // Do not allow anyone else to create new User instances. 175 // Do not allow anyone else to create new User instances.
178 static User* CreateRegularUser(const std::string& email); 176 static User* CreateRegularUser(const std::string& email);
179 static User* CreateGuestUser(); 177 static User* CreateGuestUser();
180 static User* CreateKioskAppUser(const std::string& kiosk_app_username); 178 static User* CreateKioskAppUser(const std::string& kiosk_app_username);
181 static User* CreateSupervisedUser(const std::string& username); 179 static User* CreateSupervisedUser(const std::string& username);
182 static User* CreatePublicAccountUser(const std::string& email); 180 static User* CreatePublicAccountUser(const std::string& email);
183 181
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 278
281 DISALLOW_COPY_AND_ASSIGN(User); 279 DISALLOW_COPY_AND_ASSIGN(User);
282 }; 280 };
283 281
284 // List of known users. 282 // List of known users.
285 typedef std::vector<User*> UserList; 283 typedef std::vector<User*> UserList;
286 284
287 } // namespace user_manager 285 } // namespace user_manager
288 286
289 #endif // COMPONENTS_USER_MANAGER_USER_H_ 287 #endif // COMPONENTS_USER_MANAGER_USER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698