| 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_APP_MODE_STARTUP_APP_LAUNCHER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void MaybeInitializeNetwork(); | 96 void MaybeInitializeNetwork(); |
| 97 void MaybeLaunchApp(); | 97 void MaybeLaunchApp(); |
| 98 | 98 |
| 99 void StartLoadingOAuthFile(); | 99 void StartLoadingOAuthFile(); |
| 100 static void LoadOAuthFileOnBlockingPool(KioskOAuthParams* auth_params); | 100 static void LoadOAuthFileOnBlockingPool(KioskOAuthParams* auth_params); |
| 101 void OnOAuthFileLoaded(KioskOAuthParams* auth_params); | 101 void OnOAuthFileLoaded(KioskOAuthParams* auth_params); |
| 102 | 102 |
| 103 void OnKioskAppDataLoadStatusChanged(const std::string& app_id); | 103 void OnKioskAppDataLoadStatusChanged(const std::string& app_id); |
| 104 | 104 |
| 105 // OAuth2TokenService::Observer overrides. | 105 // OAuth2TokenService::Observer overrides. |
| 106 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; | 106 virtual void OnRefreshTokenAvailable(const std::string& account_id) override; |
| 107 virtual void OnRefreshTokensLoaded() OVERRIDE; | 107 virtual void OnRefreshTokensLoaded() override; |
| 108 | 108 |
| 109 // extensions::InstallObserver overrides. | 109 // extensions::InstallObserver overrides. |
| 110 virtual void OnFinishCrxInstall(const std::string& extension_id, | 110 virtual void OnFinishCrxInstall(const std::string& extension_id, |
| 111 bool success) OVERRIDE; | 111 bool success) override; |
| 112 | 112 |
| 113 // KioskAppManagerObserver overrides. | 113 // KioskAppManagerObserver overrides. |
| 114 virtual void OnKioskExtensionLoadedInCache( | 114 virtual void OnKioskExtensionLoadedInCache( |
| 115 const std::string& app_id) OVERRIDE; | 115 const std::string& app_id) override; |
| 116 virtual void OnKioskExtensionDownloadFailed( | 116 virtual void OnKioskExtensionDownloadFailed( |
| 117 const std::string& app_id) OVERRIDE; | 117 const std::string& app_id) override; |
| 118 | 118 |
| 119 Profile* profile_; | 119 Profile* profile_; |
| 120 const std::string app_id_; | 120 const std::string app_id_; |
| 121 const bool diagnostic_mode_; | 121 const bool diagnostic_mode_; |
| 122 Delegate* delegate_; | 122 Delegate* delegate_; |
| 123 bool network_ready_handled_; | 123 bool network_ready_handled_; |
| 124 int launch_attempt_; | 124 int launch_attempt_; |
| 125 bool ready_to_launch_; | 125 bool ready_to_launch_; |
| 126 bool wait_for_crx_update_; | 126 bool wait_for_crx_update_; |
| 127 | 127 |
| 128 KioskOAuthParams auth_params_; | 128 KioskOAuthParams auth_params_; |
| 129 | 129 |
| 130 DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher); | 130 DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace chromeos | 133 } // namespace chromeos |
| 134 | 134 |
| 135 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ | 135 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ |
| OLD | NEW |