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

Side by Side Diff: chrome/browser/chromeos/login/managed/supervised_user_authentication.h

Issue 221813006: Various supervised user password fixes - 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698