| 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_SUPERVISED_USER_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_SUPERVISED_USER_MANAGER_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_SUPERVISED_USER_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_SUPERVISED_USER_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chrome/browser/chromeos/login/supervised/supervised_user_authenticatio
n.h" | 12 #include "chrome/browser/chromeos/login/supervised/supervised_user_authenticatio
n.h" |
| 13 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" | 13 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 class CrosSettings; | 17 class CrosSettings; |
| 18 class UserManagerImpl; | 18 class UserManagerImpl; |
| 19 | 19 |
| 20 // Implementation of the UserManager. | 20 // Implementation of the UserManager. |
| 21 class SupervisedUserManagerImpl | 21 class SupervisedUserManagerImpl |
| 22 : public SupervisedUserManager { | 22 : public SupervisedUserManager { |
| 23 public: | 23 public: |
| 24 virtual ~SupervisedUserManagerImpl(); | 24 virtual ~SupervisedUserManagerImpl(); |
| 25 | 25 |
| 26 virtual bool HasSupervisedUsers(const std::string& manager_id) const OVERRIDE; | 26 virtual bool HasSupervisedUsers(const std::string& manager_id) const OVERRIDE; |
| 27 virtual const User* CreateUserRecord( | 27 virtual const user_manager::User* CreateUserRecord( |
| 28 const std::string& manager_id, | 28 const std::string& manager_id, |
| 29 const std::string& local_user_id, | 29 const std::string& local_user_id, |
| 30 const std::string& sync_user_id, | 30 const std::string& sync_user_id, |
| 31 const base::string16& display_name) OVERRIDE; | 31 const base::string16& display_name) OVERRIDE; |
| 32 virtual std::string GenerateUserId() OVERRIDE; | 32 virtual std::string GenerateUserId() OVERRIDE; |
| 33 virtual const User* FindByDisplayName(const base::string16& display_name) | 33 virtual const user_manager::User* FindByDisplayName( |
| 34 const OVERRIDE; | 34 const base::string16& display_name) const OVERRIDE; |
| 35 virtual const User* FindBySyncId(const std::string& sync_id) const OVERRIDE; | 35 virtual const user_manager::User* FindBySyncId( |
| 36 const std::string& sync_id) const OVERRIDE; |
| 36 virtual std::string GetUserSyncId(const std::string& user_id) const OVERRIDE; | 37 virtual std::string GetUserSyncId(const std::string& user_id) const OVERRIDE; |
| 37 virtual base::string16 GetManagerDisplayName(const std::string& user_id) const | 38 virtual base::string16 GetManagerDisplayName(const std::string& user_id) const |
| 38 OVERRIDE; | 39 OVERRIDE; |
| 39 virtual std::string GetManagerUserId(const std::string& user_id) const | 40 virtual std::string GetManagerUserId(const std::string& user_id) const |
| 40 OVERRIDE; | 41 OVERRIDE; |
| 41 virtual std::string GetManagerDisplayEmail(const std::string& user_id) const | 42 virtual std::string GetManagerDisplayEmail(const std::string& user_id) const |
| 42 OVERRIDE; | 43 OVERRIDE; |
| 43 virtual void StartCreationTransaction(const base::string16& display_name) | 44 virtual void StartCreationTransaction(const base::string16& display_name) |
| 44 OVERRIDE; | 45 OVERRIDE; |
| 45 virtual void SetCreationTransactionUserId(const std::string& user_id) | 46 virtual void SetCreationTransactionUserId(const std::string& user_id) |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 CrosSettings* cros_settings_; | 112 CrosSettings* cros_settings_; |
| 112 | 113 |
| 113 scoped_ptr<SupervisedUserAuthentication> authentication_; | 114 scoped_ptr<SupervisedUserAuthentication> authentication_; |
| 114 | 115 |
| 115 DISALLOW_COPY_AND_ASSIGN(SupervisedUserManagerImpl); | 116 DISALLOW_COPY_AND_ASSIGN(SupervisedUserManagerImpl); |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 } // namespace chromeos | 119 } // namespace chromeos |
| 119 | 120 |
| 120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_SUPERVISED_USER_MANAGER_IMPL_H_ | 121 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_SUPERVISED_USER_MANAGER_IMPL_H_ |
| OLD | NEW |