| 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 CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/task_runner.h" | 10 #include "base/task_runner.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 // Returns current ChromeUserManager or NULL if instance hasn't been | 24 // Returns current ChromeUserManager or NULL if instance hasn't been |
| 25 // yet initialized. | 25 // yet initialized. |
| 26 static ChromeUserManager* Get(); | 26 static ChromeUserManager* Get(); |
| 27 | 27 |
| 28 // Helper method for sorting out of user list only users that can create | 28 // Helper method for sorting out of user list only users that can create |
| 29 // supervised users. | 29 // supervised users. |
| 30 static user_manager::UserList GetUsersAllowedAsSupervisedUserManagers( | 30 static user_manager::UserList GetUsersAllowedAsSupervisedUserManagers( |
| 31 const user_manager::UserList& user_list); | 31 const user_manager::UserList& user_list); |
| 32 | 32 |
| 33 // Sets affiliation status for the user |user_id| judging by |
| 34 // |user_affiliation_ids| and device affiliation IDs. |
| 35 virtual void SetUserAffiliation( |
| 36 const std::string& user_id, |
| 37 const std::set<std::string>& user_affiliation_ids) = 0; |
| 38 |
| 33 DISALLOW_COPY_AND_ASSIGN(ChromeUserManager); | 39 DISALLOW_COPY_AND_ASSIGN(ChromeUserManager); |
| 34 }; | 40 }; |
| 35 | 41 |
| 36 } // namespace chromeos | 42 } // namespace chromeos |
| 37 | 43 |
| 38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_H_ | 44 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_H_ |
| OLD | NEW |