| 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_SUPERVISED_USER_AUTHENTICATION_H_ | 4 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_SUPERVISED_USER_AUTHENTICATION_H_ |
| 5 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_SUPERVISED_USER_AUTHENTICATION_H_ | 5 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_SUPERVISED_USER_AUTHENTICATION_H_ |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 const base::DictionaryValue* password_data); | 79 const base::DictionaryValue* password_data); |
| 80 | 80 |
| 81 // Checks if given user should update password upon signin. | 81 // Checks if given user should update password upon signin. |
| 82 bool HasScheduledPasswordUpdate(const std::string& user_id); | 82 bool HasScheduledPasswordUpdate(const std::string& user_id); |
| 83 void ClearScheduledPasswordUpdate(const std::string& user_id); | 83 void ClearScheduledPasswordUpdate(const std::string& user_id); |
| 84 | 84 |
| 85 // Checks if password was migrated to new schema by supervised user. | 85 // Checks if password was migrated to new schema by supervised user. |
| 86 // In this case it does not have encryption key, and should be updated by | 86 // In this case it does not have encryption key, and should be updated by |
| 87 // manager even if password versions match. | 87 // manager even if password versions match. |
| 88 bool HasIncompleteKey(const std::string& user_id); | 88 bool HasIncompleteKey(const std::string& user_id); |
| 89 void MarkKeyIncomplete(const std::string& user_id); | 89 void MarkKeyIncomplete(const std::string& user_id, bool incomplete); |
| 90 | 90 |
| 91 // Loads password data stored by ScheduleSupervisedPasswordChange. | 91 // Loads password data stored by ScheduleSupervisedPasswordChange. |
| 92 void LoadPasswordUpdateData(const std::string& user_id, | 92 void LoadPasswordUpdateData(const std::string& user_id, |
| 93 const PasswordDataCallback& success_callback, | 93 const PasswordDataCallback& success_callback, |
| 94 const base::Closure& failure_callback); | 94 const base::Closure& failure_callback); |
| 95 | 95 |
| 96 // Creates a random string that can be used as a master key for managed | 96 // Creates a random string that can be used as a master key for managed |
| 97 // user's homedir. | 97 // user's homedir. |
| 98 std::string GenerateMasterKey(); | 98 std::string GenerateMasterKey(); |
| 99 | 99 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 114 // Target schema version. Affects migration process and new user creation. | 114 // Target schema version. Affects migration process and new user creation. |
| 115 Schema stable_schema_; | 115 Schema stable_schema_; |
| 116 | 116 |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(SupervisedUserAuthentication); | 118 DISALLOW_COPY_AND_ASSIGN(SupervisedUserAuthentication); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace chromeos | 121 } // namespace chromeos |
| 122 | 122 |
| 123 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_SUPERVISED_USER_AUTHENTICATION_
H_ | 123 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_SUPERVISED_USER_AUTHENTICATION_
H_ |
| OLD | NEW |