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

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: get rid of FakeChromeUserManager usage in ExistingUserController* tests 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
« no previous file with comments | « chromeos/login/auth/stub_authenticator.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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_
OLDNEW
« no previous file with comments | « chromeos/login/auth/stub_authenticator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698