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_MANAGER_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_USER_MANAGER_H_ |
6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_H_ | 6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "components/user_manager/user.h" | 13 #include "components/user_manager/user.h" |
14 #include "components/user_manager/user_manager_export.h" | 14 #include "components/user_manager/user_manager_export.h" |
15 #include "components/user_manager/user_type.h" | 15 #include "components/user_manager/user_type.h" |
16 | 16 |
17 class AccountId; | 17 class AccountId; |
18 class PrefService; | 18 class PrefService; |
19 | 19 |
20 namespace base { | |
21 class DictionaryValue; | |
22 } | |
23 | |
24 namespace chromeos { | 20 namespace chromeos { |
25 class LoginState; | |
26 class ScopedUserManagerEnabler; | 21 class ScopedUserManagerEnabler; |
27 } | 22 } |
28 | 23 |
29 namespace cryptohome { | |
30 class AsyncMethodCaller; | |
31 } | |
32 | |
33 namespace user_manager { | 24 namespace user_manager { |
34 | 25 |
35 class RemoveUserDelegate; | 26 class RemoveUserDelegate; |
36 | 27 |
37 // Interface for UserManagerBase - that provides base implementation for | 28 // Interface for UserManagerBase - that provides base implementation for |
38 // Chrome OS user management. Typical features: | 29 // Chrome OS user management. Typical features: |
39 // * Get list of all know users (who have logged into this Chrome OS device) | 30 // * Get list of all know users (who have logged into this Chrome OS device) |
40 // * Keep track for logged in/LRU users, active user in multi-user session. | 31 // * Keep track for logged in/LRU users, active user in multi-user session. |
41 // * Find/modify users, store user meta-data such as display name/email. | 32 // * Find/modify users, store user meta-data such as display name/email. |
42 class USER_MANAGER_EXPORT UserManager { | 33 class USER_MANAGER_EXPORT UserManager { |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 static UserManager* GetForTesting(); | 374 static UserManager* GetForTesting(); |
384 | 375 |
385 // Sets UserManager instance to the given |user_manager|. | 376 // Sets UserManager instance to the given |user_manager|. |
386 // Returns the previous value of the instance. | 377 // Returns the previous value of the instance. |
387 static UserManager* SetForTesting(UserManager* user_manager); | 378 static UserManager* SetForTesting(UserManager* user_manager); |
388 }; | 379 }; |
389 | 380 |
390 } // namespace user_manager | 381 } // namespace user_manager |
391 | 382 |
392 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_ | 383 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_ |
OLD | NEW |