| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SUPERVISED_USER_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_USER_MANAGER_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_USER_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_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" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual void StartCreationTransaction(const base::string16& display_name) OVER
RIDE; | 42 virtual void StartCreationTransaction(const base::string16& display_name) OVER
RIDE; |
| 43 virtual void SetCreationTransactionUserId(const std::string& user_id) | 43 virtual void SetCreationTransactionUserId(const std::string& user_id) |
| 44 OVERRIDE; | 44 OVERRIDE; |
| 45 virtual void CommitCreationTransaction() OVERRIDE; | 45 virtual void CommitCreationTransaction() OVERRIDE; |
| 46 virtual SupervisedUserAuthentication* GetAuthentication() OVERRIDE; | 46 virtual SupervisedUserAuthentication* GetAuthentication() OVERRIDE; |
| 47 virtual void GetPasswordInformation(const std::string& user_id, | 47 virtual void GetPasswordInformation(const std::string& user_id, |
| 48 base::DictionaryValue* result) OVERRIDE; | 48 base::DictionaryValue* result) OVERRIDE; |
| 49 virtual void SetPasswordInformation( | 49 virtual void SetPasswordInformation( |
| 50 const std::string& user_id, | 50 const std::string& user_id, |
| 51 const base::DictionaryValue* password_info) OVERRIDE; | 51 const base::DictionaryValue* password_info) OVERRIDE; |
| 52 virtual void LoadSupervisedUserToken( |
| 53 Profile * profile, |
| 54 const LoadTokenCallback& callback) OVERRIDE; |
| 55 virtual void ConfigureSyncWithToken( |
| 56 Profile* profile, |
| 57 const std::string& token) OVERRIDE; |
| 52 | 58 |
| 53 private: | 59 private: |
| 54 friend class UserManager; | 60 friend class UserManager; |
| 55 friend class UserManagerImpl; | 61 friend class UserManagerImpl; |
| 56 | 62 |
| 57 explicit SupervisedUserManagerImpl(UserManagerImpl* owner); | 63 explicit SupervisedUserManagerImpl(UserManagerImpl* owner); |
| 58 | 64 |
| 59 // Returns true if there is non-committed user creation transaction. | 65 // Returns true if there is non-committed user creation transaction. |
| 60 bool HasFailedUserCreationTransaction(); | 66 bool HasFailedUserCreationTransaction(); |
| 61 | 67 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 CrosSettings* cros_settings_; | 101 CrosSettings* cros_settings_; |
| 96 | 102 |
| 97 scoped_ptr<SupervisedUserAuthentication> authentication_; | 103 scoped_ptr<SupervisedUserAuthentication> authentication_; |
| 98 | 104 |
| 99 DISALLOW_COPY_AND_ASSIGN(SupervisedUserManagerImpl); | 105 DISALLOW_COPY_AND_ASSIGN(SupervisedUserManagerImpl); |
| 100 }; | 106 }; |
| 101 | 107 |
| 102 } // namespace chromeos | 108 } // namespace chromeos |
| 103 | 109 |
| 104 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_USER_MANAGER_IMPL_H_ | 110 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_USER_MANAGER_IMPL_H_ |
| OLD | NEW |