OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_ARC_KIOSK_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ARC_KIOSK_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ARC_KIOSK_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ARC_KIOSK_CONTROLLER_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 #include <string> |
| 10 |
8 #include "base/macros.h" | 11 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service.h" | 13 #include "chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service.h" |
11 #include "chrome/browser/chromeos/login/screens/arc_kiosk_splash_screen_view.h" | 14 #include "chrome/browser/chromeos/login/screens/arc_kiosk_splash_screen_view.h" |
12 #include "chrome/browser/chromeos/login/session/user_session_manager.h" | 15 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
13 #include "chromeos/login/auth/login_performer.h" | 16 #include "chromeos/login/auth/login_performer.h" |
14 | 17 |
15 class AccountId; | 18 class AccountId; |
16 class Profile; | 19 class Profile; |
17 | 20 |
(...skipping 13 matching lines...) Expand all Loading... |
31 class ArcKioskController : public LoginPerformer::Delegate, | 34 class ArcKioskController : public LoginPerformer::Delegate, |
32 public UserSessionManagerDelegate, | 35 public UserSessionManagerDelegate, |
33 public ArcKioskAppService::Delegate, | 36 public ArcKioskAppService::Delegate, |
34 public ArcKioskSplashScreenView::Delegate { | 37 public ArcKioskSplashScreenView::Delegate { |
35 public: | 38 public: |
36 ArcKioskController(LoginDisplayHost* host, OobeUI* oobe_ui); | 39 ArcKioskController(LoginDisplayHost* host, OobeUI* oobe_ui); |
37 | 40 |
38 ~ArcKioskController() override; | 41 ~ArcKioskController() override; |
39 | 42 |
40 // Starts ARC kiosk splash screen. | 43 // Starts ARC kiosk splash screen. |
41 void StartArcKiosk(const AccountId& account_id); | 44 void StartArcKiosk(const AccountId& account_id, bool is_auto_launch); |
42 | 45 |
43 private: | 46 private: |
44 void CleanUp(); | 47 void CleanUp(); |
45 void CloseSplashScreen(); | 48 void CloseSplashScreen(); |
46 | 49 |
47 // LoginPerformer::Delegate implementation: | 50 // LoginPerformer::Delegate implementation: |
48 void OnAuthFailure(const AuthFailure& error) override; | 51 void OnAuthFailure(const AuthFailure& error) override; |
49 void OnAuthSuccess(const UserContext& user_context) override; | 52 void OnAuthSuccess(const UserContext& user_context) override; |
50 void WhiteListCheckFailed(const std::string& email) override; | 53 void WhiteListCheckFailed(const std::string& email) override; |
51 void PolicyLoadFailed() override; | 54 void PolicyLoadFailed() override; |
(...skipping 23 matching lines...) Expand all Loading... |
75 base::OneShotTimer splash_wait_timer_; | 78 base::OneShotTimer splash_wait_timer_; |
76 bool launched_ = false; | 79 bool launched_ = false; |
77 base::WeakPtrFactory<ArcKioskController> weak_ptr_factory_; | 80 base::WeakPtrFactory<ArcKioskController> weak_ptr_factory_; |
78 | 81 |
79 DISALLOW_COPY_AND_ASSIGN(ArcKioskController); | 82 DISALLOW_COPY_AND_ASSIGN(ArcKioskController); |
80 }; | 83 }; |
81 | 84 |
82 } // namespace chromeos | 85 } // namespace chromeos |
83 | 86 |
84 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ARC_KIOSK_CONTROLLER_H_ | 87 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ARC_KIOSK_CONTROLLER_H_ |
OLD | NEW |