| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APP_LAUNCH_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // owner password might be checked before showing the network configure UI. | 80 // owner password might be checked before showing the network configure UI. |
| 81 void MaybeShowNetworkConfigureUI(); | 81 void MaybeShowNetworkConfigureUI(); |
| 82 | 82 |
| 83 // KioskProfileLoader::Delegate overrides: | 83 // KioskProfileLoader::Delegate overrides: |
| 84 virtual void OnProfileLoaded(Profile* profile) OVERRIDE; | 84 virtual void OnProfileLoaded(Profile* profile) OVERRIDE; |
| 85 virtual void OnProfileLoadFailed(KioskAppLaunchError::Error error) OVERRIDE; | 85 virtual void OnProfileLoadFailed(KioskAppLaunchError::Error error) OVERRIDE; |
| 86 | 86 |
| 87 // AppLaunchSplashScreenActor::Delegate overrides: | 87 // AppLaunchSplashScreenActor::Delegate overrides: |
| 88 virtual void OnConfigureNetwork() OVERRIDE; | 88 virtual void OnConfigureNetwork() OVERRIDE; |
| 89 virtual void OnCancelAppLaunch() OVERRIDE; | 89 virtual void OnCancelAppLaunch() OVERRIDE; |
| 90 virtual void OnNetworkConfigRequested(bool requested) OVERRIDE; |
| 90 virtual void OnNetworkStateChanged(bool online) OVERRIDE; | 91 virtual void OnNetworkStateChanged(bool online) OVERRIDE; |
| 91 | 92 |
| 92 // StartupAppLauncher::Delegate overrides: | 93 // StartupAppLauncher::Delegate overrides: |
| 93 virtual void InitializeNetwork() OVERRIDE; | 94 virtual void InitializeNetwork() OVERRIDE; |
| 94 virtual bool IsNetworkReady() OVERRIDE; | 95 virtual bool IsNetworkReady() OVERRIDE; |
| 95 virtual void OnLoadingOAuthFile() OVERRIDE; | 96 virtual void OnLoadingOAuthFile() OVERRIDE; |
| 96 virtual void OnInitializingTokenService() OVERRIDE; | 97 virtual void OnInitializingTokenService() OVERRIDE; |
| 97 virtual void OnInstallingApp() OVERRIDE; | 98 virtual void OnInstallingApp() OVERRIDE; |
| 98 virtual void OnReadyToLaunch() OVERRIDE; | 99 virtual void OnReadyToLaunch() OVERRIDE; |
| 99 virtual void OnLaunchSucceeded() OVERRIDE; | 100 virtual void OnLaunchSucceeded() OVERRIDE; |
| 100 virtual void OnLaunchFailed(KioskAppLaunchError::Error error) OVERRIDE; | 101 virtual void OnLaunchFailed(KioskAppLaunchError::Error error) OVERRIDE; |
| 102 virtual bool IsShowingNetworkConfigScreen() OVERRIDE; |
| 101 | 103 |
| 102 // AppLaunchSigninScreen::Delegate overrides: | 104 // AppLaunchSigninScreen::Delegate overrides: |
| 103 virtual void OnOwnerSigninSuccess() OVERRIDE; | 105 virtual void OnOwnerSigninSuccess() OVERRIDE; |
| 104 | 106 |
| 105 // content::NotificationObserver overrides: | 107 // content::NotificationObserver overrides: |
| 106 virtual void Observe(int type, | 108 virtual void Observe(int type, |
| 107 const content::NotificationSource& source, | 109 const content::NotificationSource& source, |
| 108 const content::NotificationDetails& details) OVERRIDE; | 110 const content::NotificationDetails& details) OVERRIDE; |
| 109 | 111 |
| 110 Profile* profile_; | 112 Profile* profile_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 122 bool webui_visible_; | 124 bool webui_visible_; |
| 123 bool launcher_ready_; | 125 bool launcher_ready_; |
| 124 | 126 |
| 125 // A timer to ensure the app splash is shown for a minimum amount of time. | 127 // A timer to ensure the app splash is shown for a minimum amount of time. |
| 126 base::OneShotTimer<AppLaunchController> splash_wait_timer_; | 128 base::OneShotTimer<AppLaunchController> splash_wait_timer_; |
| 127 | 129 |
| 128 base::OneShotTimer<AppLaunchController> network_wait_timer_; | 130 base::OneShotTimer<AppLaunchController> network_wait_timer_; |
| 129 bool waiting_for_network_; | 131 bool waiting_for_network_; |
| 130 bool network_wait_timedout_; | 132 bool network_wait_timedout_; |
| 131 bool showing_network_dialog_; | 133 bool showing_network_dialog_; |
| 134 bool network_config_requested_; |
| 132 int64 launch_splash_start_time_; | 135 int64 launch_splash_start_time_; |
| 133 | 136 |
| 134 static bool skip_splash_wait_; | 137 static bool skip_splash_wait_; |
| 135 static int network_wait_time_; | 138 static int network_wait_time_; |
| 136 static base::Closure* network_timeout_callback_; | 139 static base::Closure* network_timeout_callback_; |
| 137 static ReturnBoolCallback* can_configure_network_callback_; | 140 static ReturnBoolCallback* can_configure_network_callback_; |
| 138 static ReturnBoolCallback* need_owner_auth_to_configure_network_callback_; | 141 static ReturnBoolCallback* need_owner_auth_to_configure_network_callback_; |
| 139 | 142 |
| 140 DISALLOW_COPY_AND_ASSIGN(AppLaunchController); | 143 DISALLOW_COPY_AND_ASSIGN(AppLaunchController); |
| 141 }; | 144 }; |
| 142 | 145 |
| 143 } // namespace chromeos | 146 } // namespace chromeos |
| 144 | 147 |
| 145 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_CONTROLLER_H_ | 148 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_CONTROLLER_H_ |
| OLD | NEW |