OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOCALLY_MANAGED_USER_CREATION_CONT
ROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_CONT
ROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_CONT
ROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_CONT
ROLLER_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" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 15 #include "base/values.h" |
15 #include "chrome/browser/chromeos/login/managed/managed_user_authenticator.h" | 16 #include "chrome/browser/chromeos/login/managed/managed_user_authenticator.h" |
16 #include "chrome/browser/managed_mode/managed_user_registration_utility.h" | 17 #include "chrome/browser/managed_mode/managed_user_registration_utility.h" |
17 | 18 |
18 class Profile; | 19 class Profile; |
19 | 20 |
20 namespace chromeos { | 21 namespace chromeos { |
21 | 22 |
22 // LocallyManagedUserCreationController is used to locally managed user | 23 // LocallyManagedUserCreationController is used to locally managed user |
23 // creation. | 24 // creation. |
24 // LMU Creation process: | 25 // LMU Creation process: |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 std::string manager_id; | 109 std::string manager_id; |
109 std::string local_user_id; // Used to identify cryptohome. | 110 std::string local_user_id; // Used to identify cryptohome. |
110 std::string sync_user_id; // Used to identify user in manager's sync data. | 111 std::string sync_user_id; // Used to identify user in manager's sync data. |
111 std::string password; | 112 std::string password; |
112 std::string mount_hash; | 113 std::string mount_hash; |
113 std::string master_key; | 114 std::string master_key; |
114 bool token_acquired; | 115 bool token_acquired; |
115 std::string token; | 116 std::string token; |
116 bool token_succesfully_written; | 117 bool token_succesfully_written; |
117 CreationType creation_type; | 118 CreationType creation_type; |
| 119 base::DictionaryValue password_data; |
118 Profile* manager_profile; | 120 Profile* manager_profile; |
119 scoped_ptr<ManagedUserRegistrationUtility> registration_utility; | 121 scoped_ptr<ManagedUserRegistrationUtility> registration_utility; |
120 }; | 122 }; |
121 | 123 |
122 // ManagedUserAuthenticator::StatusConsumer overrides. | 124 // ManagedUserAuthenticator::StatusConsumer overrides. |
123 virtual void OnAuthenticationFailure( | 125 virtual void OnAuthenticationFailure( |
124 ManagedUserAuthenticator::AuthState error) OVERRIDE; | 126 ManagedUserAuthenticator::AuthState error) OVERRIDE; |
125 virtual void OnMountSuccess(const std::string& mount_hash) OVERRIDE; | 127 virtual void OnMountSuccess(const std::string& mount_hash) OVERRIDE; |
126 virtual void OnAddKeySuccess() OVERRIDE; | 128 virtual void OnAddKeySuccess() OVERRIDE; |
127 | 129 |
(...skipping 23 matching lines...) Expand all Loading... |
151 | 153 |
152 // Factory of callbacks. | 154 // Factory of callbacks. |
153 base::WeakPtrFactory<LocallyManagedUserCreationController> weak_factory_; | 155 base::WeakPtrFactory<LocallyManagedUserCreationController> weak_factory_; |
154 | 156 |
155 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationController); | 157 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationController); |
156 }; | 158 }; |
157 | 159 |
158 } // namespace chromeos | 160 } // namespace chromeos |
159 | 161 |
160 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_C
ONTROLLER_H_ | 162 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_C
ONTROLLER_H_ |
OLD | NEW |