ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / chrome / browser / chromeos / login / users / chrome_user_manager.h
blobd97d2d75c16d615bb18d34130520498891febd46
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_H_
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/task_runner.h"
11 #include "chrome/browser/chromeos/login/users/user_manager_interface.h"
12 #include "components/user_manager/user_manager_base.h"
14 namespace chromeos {
16 // Chrome specific interface of the UserManager.
17 class ChromeUserManager : public user_manager::UserManagerBase,
18 public UserManagerInterface {
19 public:
20 ChromeUserManager(scoped_refptr<base::TaskRunner> task_runner,
21 scoped_refptr<base::TaskRunner> blocking_task_runner);
22 ~ChromeUserManager() override;
24 // Returns current ChromeUserManager or NULL if instance hasn't been
25 // yet initialized.
26 static ChromeUserManager* Get();
28 // Helper method for sorting out of user list only users that can create
29 // supervised users.
30 static user_manager::UserList GetUsersAllowedAsSupervisedUserManagers(
31 const user_manager::UserList& user_list);
33 DISALLOW_COPY_AND_ASSIGN(ChromeUserManager);
36 } // namespace chromeos
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_H_