| 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_MANAGED_MANAGED_USER_CREATION_CONTROLLER_H
_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_MANAGED_USER_CREATION_CONTROLLER_H
_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_MANAGED_USER_CREATION_CONTROLLER_H
_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_MANAGED_USER_CREATION_CONTROLLER_H
_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 // Configures and initiates importing existing supervised user to this device. | 69 // Configures and initiates importing existing supervised user to this device. |
| 70 // Existing user is identified by |sync_id|, has |display_name|, |password|, | 70 // Existing user is identified by |sync_id|, has |display_name|, |password|, |
| 71 // |avatar_index|. The master key for cryptohome is a |master_key|. | 71 // |avatar_index|. The master key for cryptohome is a |master_key|. |
| 72 virtual void StartImport(const base::string16& display_name, | 72 virtual void StartImport(const base::string16& display_name, |
| 73 const std::string& password, | 73 const std::string& password, |
| 74 int avatar_index, | 74 int avatar_index, |
| 75 const std::string& sync_id, | 75 const std::string& sync_id, |
| 76 const std::string& master_key) = 0; | 76 const std::string& master_key) = 0; |
| 77 | 77 |
| 78 // Configures and initiates importing existing supervised user to this device. |
| 79 // Existing user is identified by |sync_id|, has |display_name|, |
| 80 // |avatar_index|. The master key for cryptohome is a |master_key|. The user |
| 81 // has password specified in |password_data| and |
| 82 // |encryption_key|/|signature_key| for cryptohome. |
| 83 virtual void StartImport(const base::string16& display_name, |
| 84 int avatar_index, |
| 85 const std::string& sync_id, |
| 86 const std::string& master_key, |
| 87 const base::DictionaryValue* password_data, |
| 88 const std::string& encryption_key, |
| 89 const std::string& signature_key) = 0; |
| 90 |
| 78 virtual void SetManagerProfile(Profile* manager_profile) = 0; | 91 virtual void SetManagerProfile(Profile* manager_profile) = 0; |
| 92 virtual Profile* GetManagerProfile() = 0; |
| 79 virtual void CancelCreation() = 0; | 93 virtual void CancelCreation() = 0; |
| 80 virtual void FinishCreation() = 0; | 94 virtual void FinishCreation() = 0; |
| 81 virtual std::string GetManagedUserId() = 0; | 95 virtual std::string GetManagedUserId() = 0; |
| 82 | 96 |
| 83 protected: | 97 protected: |
| 84 // Pointer to the current instance of the controller to be used by | 98 // Pointer to the current instance of the controller to be used by |
| 85 // automation tests. | 99 // automation tests. |
| 86 static ManagedUserCreationController* current_controller_; | 100 static ManagedUserCreationController* current_controller_; |
| 87 | 101 |
| 88 StatusConsumer* consumer_; | 102 StatusConsumer* consumer_; |
| 89 | 103 |
| 90 private: | 104 private: |
| 91 DISALLOW_COPY_AND_ASSIGN(ManagedUserCreationController); | 105 DISALLOW_COPY_AND_ASSIGN(ManagedUserCreationController); |
| 92 }; | 106 }; |
| 93 | 107 |
| 94 } // namespace chromeos | 108 } // namespace chromeos |
| 95 | 109 |
| 96 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_MANAGED_USER_CREATION_CONTROLLE
R_H_ | 110 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_MANAGED_USER_CREATION_CONTROLLE
R_H_ |
| OLD | NEW |