| 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_EXISTING_USER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 void ShowEnrollmentScreen(bool forced, const std::string& user); | 161 void ShowEnrollmentScreen(bool forced, const std::string& user); |
| 162 | 162 |
| 163 // Invoked to complete login. Login might be suspended if auto-enrollment | 163 // Invoked to complete login. Login might be suspended if auto-enrollment |
| 164 // has to be performed, and will resume once auto-enrollment completes. | 164 // has to be performed, and will resume once auto-enrollment completes. |
| 165 void CompleteLoginInternal(std::string username, std::string password); | 165 void CompleteLoginInternal(std::string username, std::string password); |
| 166 | 166 |
| 167 void set_login_performer_delegate(LoginPerformer::Delegate* d) { | 167 void set_login_performer_delegate(LoginPerformer::Delegate* d) { |
| 168 login_performer_delegate_.reset(d); | 168 login_performer_delegate_.reset(d); |
| 169 } | 169 } |
| 170 | 170 |
| 171 // Passes owner user to cryptohomed. Called right before mounting a user. | |
| 172 // Subsequent disk space control checks are invoked by cryptohomed timer. | |
| 173 void SetOwnerUserInCryptohome(); | |
| 174 | |
| 175 // Prepares and updates/initializes depending on |init| the |login_display_| | 171 // Prepares and updates/initializes depending on |init| the |login_display_| |
| 176 // attached to this controller. | 172 // attached to this controller. |
| 177 void UpdateLoginDisplay(const UserList& users, bool init); | 173 void UpdateLoginDisplay(const UserList& users, bool init); |
| 178 | 174 |
| 179 // Used to execute login operations. | 175 // Used to execute login operations. |
| 180 scoped_ptr<LoginPerformer> login_performer_; | 176 scoped_ptr<LoginPerformer> login_performer_; |
| 181 | 177 |
| 182 // Delegate for login performer to be overridden by tests. | 178 // Delegate for login performer to be overridden by tests. |
| 183 // |this| is used if |login_performer_delegate_| is NULL. | 179 // |this| is used if |login_performer_delegate_| is NULL. |
| 184 scoped_ptr<LoginPerformer::Delegate> login_performer_delegate_; | 180 scoped_ptr<LoginPerformer::Delegate> login_performer_delegate_; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 base::Time time_init_; | 251 base::Time time_init_; |
| 256 | 252 |
| 257 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); | 253 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); |
| 258 | 254 |
| 259 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 255 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
| 260 }; | 256 }; |
| 261 | 257 |
| 262 } // namespace chromeos | 258 } // namespace chromeos |
| 263 | 259 |
| 264 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 260 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| OLD | NEW |