| 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; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 122 bool webui_visible_; | 123 bool webui_visible_; |
| 123 bool launcher_ready_; | 124 bool launcher_ready_; |
| 124 | 125 |
| 125 // A timer to ensure the app splash is shown for a minimum amount of time. | 126 // A timer to ensure the app splash is shown for a minimum amount of time. |
| 126 base::OneShotTimer<AppLaunchController> splash_wait_timer_; | 127 base::OneShotTimer<AppLaunchController> splash_wait_timer_; |
| 127 | 128 |
| 128 base::OneShotTimer<AppLaunchController> network_wait_timer_; | 129 base::OneShotTimer<AppLaunchController> network_wait_timer_; |
| 129 bool waiting_for_network_; | 130 bool waiting_for_network_; |
| 130 bool network_wait_timedout_; | 131 bool network_wait_timedout_; |
| 131 bool showing_network_dialog_; | 132 bool showing_network_dialog_; |
| 133 bool network_config_requested_; |
| 132 int64 launch_splash_start_time_; | 134 int64 launch_splash_start_time_; |
| 133 | 135 |
| 134 static bool skip_splash_wait_; | 136 static bool skip_splash_wait_; |
| 135 static int network_wait_time_; | 137 static int network_wait_time_; |
| 136 static base::Closure* network_timeout_callback_; | 138 static base::Closure* network_timeout_callback_; |
| 137 static ReturnBoolCallback* can_configure_network_callback_; | 139 static ReturnBoolCallback* can_configure_network_callback_; |
| 138 static ReturnBoolCallback* need_owner_auth_to_configure_network_callback_; | 140 static ReturnBoolCallback* need_owner_auth_to_configure_network_callback_; |
| 139 | 141 |
| 140 DISALLOW_COPY_AND_ASSIGN(AppLaunchController); | 142 DISALLOW_COPY_AND_ASSIGN(AppLaunchController); |
| 141 }; | 143 }; |
| 142 | 144 |
| 143 } // namespace chromeos | 145 } // namespace chromeos |
| 144 | 146 |
| 145 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_CONTROLLER_H_ | 147 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_CONTROLLER_H_ |
| OLD | NEW |