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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 friend class ExistingUserControllerTest; | 141 friend class ExistingUserControllerTest; |
142 friend class ExistingUserControllerAutoLoginTest; | 142 friend class ExistingUserControllerAutoLoginTest; |
143 friend class ExistingUserControllerPublicSessionTest; | 143 friend class ExistingUserControllerPublicSessionTest; |
144 friend class MockLoginPerformerDelegate; | 144 friend class MockLoginPerformerDelegate; |
145 | 145 |
146 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin); | 146 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin); |
147 | 147 |
148 void LoginAsGuest(); | 148 void LoginAsGuest(); |
149 void LoginAsPublicSession(const UserContext& user_context); | 149 void LoginAsPublicSession(const UserContext& user_context); |
150 void LoginAsKioskApp(const std::string& app_id, bool diagnostic_mode); | 150 void LoginAsKioskApp(const std::string& app_id, bool diagnostic_mode); |
151 void LoginAsArcKioskApp(const AccountId& account_id); | 151 void LoginAsArcKioskApp(const AccountId& account_id, bool is_auto_launch); |
152 // Retrieve public session and ARC kiosk auto-login policy and update the | 152 // Retrieve public session and ARC kiosk auto-login policy and update the |
153 // timer. | 153 // timer. |
154 void ConfigureAutoLogin(); | 154 void ConfigureAutoLogin(); |
155 | 155 |
156 // Trigger public session auto-login. | 156 // Trigger public session auto-login. |
157 void OnPublicSessionAutoLoginTimerFire(); | 157 void OnPublicSessionAutoLoginTimerFire(); |
158 // Trigger ARC kiosk auto-login. | 158 // Trigger ARC kiosk auto-login. |
159 void OnArcKioskAutoLoginTimerFire(); | 159 void OnArcKioskAutoLoginTimerFire(); |
160 | 160 |
161 // LoginPerformer::Delegate implementation: | 161 // LoginPerformer::Delegate implementation: |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 377 |
378 // Factory of callbacks. | 378 // Factory of callbacks. |
379 base::WeakPtrFactory<ExistingUserController> weak_factory_; | 379 base::WeakPtrFactory<ExistingUserController> weak_factory_; |
380 | 380 |
381 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 381 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
382 }; | 382 }; |
383 | 383 |
384 } // namespace chromeos | 384 } // namespace chromeos |
385 | 385 |
386 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 386 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
OLD | NEW |