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

Side by Side Diff: chrome/browser/chromeos/login/users/chrome_user_manager.h

Issue 1266563002: Added affiliation IDs for the new affiliation determination. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 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"
11 #include "chrome/browser/chromeos/login/users/affiliation.h"
11 #include "chrome/browser/chromeos/login/users/user_manager_interface.h" 12 #include "chrome/browser/chromeos/login/users/user_manager_interface.h"
12 #include "components/user_manager/user_manager_base.h" 13 #include "components/user_manager/user_manager_base.h"
13 14
14 namespace chromeos { 15 namespace chromeos {
15 16
16 // Chrome specific interface of the UserManager. 17 // Chrome specific interface of the UserManager.
17 class ChromeUserManager : public user_manager::UserManagerBase, 18 class ChromeUserManager : public user_manager::UserManagerBase,
18 public UserManagerInterface { 19 public UserManagerInterface {
19 public: 20 public:
20 ChromeUserManager(scoped_refptr<base::TaskRunner> task_runner, 21 ChromeUserManager(scoped_refptr<base::TaskRunner> task_runner,
21 scoped_refptr<base::TaskRunner> blocking_task_runner); 22 scoped_refptr<base::TaskRunner> blocking_task_runner);
22 ~ChromeUserManager() override; 23 ~ChromeUserManager() override;
23 24
24 // Returns current ChromeUserManager or NULL if instance hasn't been 25 // Returns current ChromeUserManager or NULL if instance hasn't been
25 // yet initialized. 26 // yet initialized.
26 static ChromeUserManager* Get(); 27 static ChromeUserManager* Get();
27 28
28 // Helper method for sorting out of user list only users that can create 29 // Helper method for sorting out of user list only users that can create
29 // supervised users. 30 // supervised users.
30 static user_manager::UserList GetUsersAllowedAsSupervisedUserManagers( 31 static user_manager::UserList GetUsersAllowedAsSupervisedUserManagers(
31 const user_manager::UserList& user_list); 32 const user_manager::UserList& user_list);
32 33
34 // Sets affiliation status for the user |user_id| judging by
35 // |user_affiliation_ids| and device affiliation IDs.
36 virtual void SetUserAffiliation(
37 const std::string& user_email,
38 const AffiliationIDSet& user_affiliation_ids) = 0;
39
33 DISALLOW_COPY_AND_ASSIGN(ChromeUserManager); 40 DISALLOW_COPY_AND_ASSIGN(ChromeUserManager);
34 }; 41 };
35 42
36 } // namespace chromeos 43 } // namespace chromeos
37 44
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_H_ 45 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698