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

Unified Diff: chrome/browser/chromeos/login/supervised_user_manager.h

Issue 101283003: Add first implemenation for SU password sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/supervised_user_manager.h
diff --git a/chrome/browser/chromeos/login/supervised_user_manager.h b/chrome/browser/chromeos/login/supervised_user_manager.h
index 880c989c75bdf458d796a2f4d27e00cd2488f8fb..c19a9308781a70f8210ee964ebc91bc88330d4d9 100644
--- a/chrome/browser/chromeos/login/supervised_user_manager.h
+++ b/chrome/browser/chromeos/login/supervised_user_manager.h
@@ -15,6 +15,12 @@ class PrefRegistrySimple;
namespace chromeos {
class User;
+class SupervisedUserAuthentication;
+
+extern const char kSchemaVersion[];
+extern const char kPasswordVersion[];
Nikita (slow) 2013/12/09 16:42:16 nit: Rename to revision?
Denis Kuznetsov (DE-MUC) 2013/12/12 19:45:24 Done.
+extern const char kSalt[];
+extern const char kEncryptedPassword[];
// Base class for SupervisedUserManagerImpl - provides a mechanism for getting
// and setting specific values for supervised users, as well as additional
@@ -79,6 +85,19 @@ class SupervisedUserManager {
// Remove locally managed user creation transaction record.
virtual void CommitCreationTransaction() = 0;
+ // Return object that handles specifics of supervised user authentication.
+ virtual SupervisedUserAuthentication* GetSupervisedUserAuthentication() = 0;
Nikita (slow) 2013/12/09 16:42:16 nit: I think this may be renamed to GetAuthenticat
Denis Kuznetsov (DE-MUC) 2013/12/12 19:45:24 Done.
+
+ // Fill |result| with public password-specific data for |user_id| from Local
+ // State.
+ virtual void GetPasswordInformation(const std::string& user_id,
+ base::DictionaryValue* result) = 0;
+ // Stores public password-specific data from |password_info| for |user_id| in
Bernhard Bauer 2013/12/11 14:46:43 Nit: newline before this line.
Denis Kuznetsov (DE-MUC) 2013/12/12 19:45:24 Done.
+ // Local State.
+ virtual void SetPasswordInformation(
+ const std::string& user_id,
+ const base::DictionaryValue* password_info) = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(SupervisedUserManager);
};

Powered by Google App Engine
This is Rietveld 408576698