| 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 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 friend class ExistingUserControllerTest; | 132 friend class ExistingUserControllerTest; |
| 133 friend class ExistingUserControllerAutoLoginTest; | 133 friend class ExistingUserControllerAutoLoginTest; |
| 134 friend class ExistingUserControllerPublicSessionTest; | 134 friend class ExistingUserControllerPublicSessionTest; |
| 135 friend class MockLoginPerformerDelegate; | 135 friend class MockLoginPerformerDelegate; |
| 136 | 136 |
| 137 void LoginAsGuest(); | 137 void LoginAsGuest(); |
| 138 void LoginAsPublicSession(const UserContext& user_context); | 138 void LoginAsPublicSession(const UserContext& user_context); |
| 139 void LoginAsKioskApp(const std::string& app_id, bool diagnostic_mode); | 139 void LoginAsKioskApp(const std::string& app_id, bool diagnostic_mode); |
| 140 void LoginAsArcKioskApp(const AccountId& account_id); |
| 140 | 141 |
| 141 // Retrieve public session auto-login policy and update the timer. | 142 // Retrieve public session auto-login policy and update the timer. |
| 142 void ConfigurePublicSessionAutoLogin(); | 143 void ConfigurePublicSessionAutoLogin(); |
| 143 | 144 |
| 144 // Trigger public session auto-login. | 145 // Trigger public session auto-login. |
| 145 void OnPublicSessionAutoLoginTimerFire(); | 146 void OnPublicSessionAutoLoginTimerFire(); |
| 146 | 147 |
| 147 // LoginPerformer::Delegate implementation: | 148 // LoginPerformer::Delegate implementation: |
| 148 void OnAuthFailure(const AuthFailure& error) override; | 149 void OnAuthFailure(const AuthFailure& error) override; |
| 149 void OnAuthSuccess(const UserContext& user_context) override; | 150 void OnAuthSuccess(const UserContext& user_context) override; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 348 |
| 348 // Factory of callbacks. | 349 // Factory of callbacks. |
| 349 base::WeakPtrFactory<ExistingUserController> weak_factory_; | 350 base::WeakPtrFactory<ExistingUserController> weak_factory_; |
| 350 | 351 |
| 351 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 352 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
| 352 }; | 353 }; |
| 353 | 354 |
| 354 } // namespace chromeos | 355 } // namespace chromeos |
| 355 | 356 |
| 356 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 357 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| OLD | NEW |