| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // Changes state of the status area. During login operation it's disabled. | 129 // Changes state of the status area. During login operation it's disabled. |
| 130 void SetStatusAreaEnabled(bool enable); | 130 void SetStatusAreaEnabled(bool enable); |
| 131 | 131 |
| 132 // Show error message. |error_id| error message ID in resources. | 132 // Show error message. |error_id| error message ID in resources. |
| 133 // If |details| string is not empty, it specify additional error text | 133 // If |details| string is not empty, it specify additional error text |
| 134 // provided by authenticator, it is not localized. | 134 // provided by authenticator, it is not localized. |
| 135 void ShowError(int error_id, const std::string& details); | 135 void ShowError(int error_id, const std::string& details); |
| 136 | 136 |
| 137 // Handles result of ownership check and starts enterprise enrollment if | 137 // Handles result of ownership check and starts enterprise enrollment if |
| 138 // applicable. | 138 // applicable. |
| 139 void OnEnrollmentOwnershipCheckCompleted(OwnershipService::Status status); | 139 void OnEnrollmentOwnershipCheckCompleted(OwnershipService::Status status, |
| 140 bool current_user_is_owner); |
| 140 | 141 |
| 141 void set_login_performer_delegate(LoginPerformer::Delegate* d) { | 142 void set_login_performer_delegate(LoginPerformer::Delegate* d) { |
| 142 login_performer_delegate_.reset(d); | 143 login_performer_delegate_.reset(d); |
| 143 } | 144 } |
| 144 | 145 |
| 145 // Passes owner user to cryptohomed and initiates disk control control check. | 146 // Passes owner user to cryptohomed and initiates disk control control check. |
| 146 // Subsequent disk space control checks are invoked by cryptohomed timer. | 147 // Subsequent disk space control checks are invoked by cryptohomed timer. |
| 147 void StartAutomaticFreeDiskSpaceControl(); | 148 void StartAutomaticFreeDiskSpaceControl(); |
| 148 | 149 |
| 149 // Used to execute login operations. | 150 // Used to execute login operations. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 scoped_ptr<OwnershipStatusChecker> ownership_checker_; | 197 scoped_ptr<OwnershipStatusChecker> ownership_checker_; |
| 197 | 198 |
| 198 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); | 199 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); |
| 199 | 200 |
| 200 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 201 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
| 201 }; | 202 }; |
| 202 | 203 |
| 203 } // namespace chromeos | 204 } // namespace chromeos |
| 204 | 205 |
| 205 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 206 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| OLD | NEW |