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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 bool CanConfigureNetwork(); | 74 bool CanConfigureNetwork(); |
75 | 75 |
76 // Whether the owner password is needed to configure network. | 76 // Whether the owner password is needed to configure network. |
77 bool NeedOwnerAuthToConfigureNetwork(); | 77 bool NeedOwnerAuthToConfigureNetwork(); |
78 | 78 |
79 // Show network configuration UI if it is allowed. For consumer mode, | 79 // Show network configuration UI if it is allowed. For consumer mode, |
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 OnNetworkConfigRequested(bool requested) override; |
91 virtual void OnNetworkStateChanged(bool online) OVERRIDE; | 91 virtual void OnNetworkStateChanged(bool online) override; |
92 | 92 |
93 // StartupAppLauncher::Delegate overrides: | 93 // StartupAppLauncher::Delegate overrides: |
94 virtual void InitializeNetwork() OVERRIDE; | 94 virtual void InitializeNetwork() override; |
95 virtual bool IsNetworkReady() OVERRIDE; | 95 virtual bool IsNetworkReady() override; |
96 virtual void OnLoadingOAuthFile() OVERRIDE; | 96 virtual void OnLoadingOAuthFile() override; |
97 virtual void OnInitializingTokenService() OVERRIDE; | 97 virtual void OnInitializingTokenService() override; |
98 virtual void OnInstallingApp() OVERRIDE; | 98 virtual void OnInstallingApp() override; |
99 virtual void OnReadyToLaunch() OVERRIDE; | 99 virtual void OnReadyToLaunch() override; |
100 virtual void OnLaunchSucceeded() OVERRIDE; | 100 virtual void OnLaunchSucceeded() override; |
101 virtual void OnLaunchFailed(KioskAppLaunchError::Error error) OVERRIDE; | 101 virtual void OnLaunchFailed(KioskAppLaunchError::Error error) override; |
102 virtual bool IsShowingNetworkConfigScreen() OVERRIDE; | 102 virtual bool IsShowingNetworkConfigScreen() override; |
103 | 103 |
104 // AppLaunchSigninScreen::Delegate overrides: | 104 // AppLaunchSigninScreen::Delegate overrides: |
105 virtual void OnOwnerSigninSuccess() OVERRIDE; | 105 virtual void OnOwnerSigninSuccess() override; |
106 | 106 |
107 // content::NotificationObserver overrides: | 107 // content::NotificationObserver overrides: |
108 virtual void Observe(int type, | 108 virtual void Observe(int type, |
109 const content::NotificationSource& source, | 109 const content::NotificationSource& source, |
110 const content::NotificationDetails& details) OVERRIDE; | 110 const content::NotificationDetails& details) override; |
111 | 111 |
112 Profile* profile_; | 112 Profile* profile_; |
113 const std::string app_id_; | 113 const std::string app_id_; |
114 const bool diagnostic_mode_; | 114 const bool diagnostic_mode_; |
115 LoginDisplayHost* host_; | 115 LoginDisplayHost* host_; |
116 OobeDisplay* oobe_display_; | 116 OobeDisplay* oobe_display_; |
117 AppLaunchSplashScreenActor* app_launch_splash_screen_actor_; | 117 AppLaunchSplashScreenActor* app_launch_splash_screen_actor_; |
118 scoped_ptr<KioskProfileLoader> kiosk_profile_loader_; | 118 scoped_ptr<KioskProfileLoader> kiosk_profile_loader_; |
119 scoped_ptr<StartupAppLauncher> startup_app_launcher_; | 119 scoped_ptr<StartupAppLauncher> startup_app_launcher_; |
120 scoped_ptr<AppLaunchSigninScreen> signin_screen_; | 120 scoped_ptr<AppLaunchSigninScreen> signin_screen_; |
(...skipping 18 matching lines...) Expand all Loading... |
139 static base::Closure* network_timeout_callback_; | 139 static base::Closure* network_timeout_callback_; |
140 static ReturnBoolCallback* can_configure_network_callback_; | 140 static ReturnBoolCallback* can_configure_network_callback_; |
141 static ReturnBoolCallback* need_owner_auth_to_configure_network_callback_; | 141 static ReturnBoolCallback* need_owner_auth_to_configure_network_callback_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(AppLaunchController); | 143 DISALLOW_COPY_AND_ASSIGN(AppLaunchController); |
144 }; | 144 }; |
145 | 145 |
146 } // namespace chromeos | 146 } // namespace chromeos |
147 | 147 |
148 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_CONTROLLER_H_ | 148 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_CONTROLLER_H_ |
OLD | NEW |