diff options
Diffstat (limited to 'chrome/browser/chromeos/app_mode/startup_app_launcher.h')
-rw-r--r-- | chrome/browser/chromeos/app_mode/startup_app_launcher.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/app_mode/startup_app_launcher.h b/chrome/browser/chromeos/app_mode/startup_app_launcher.h index 43f7cbf..72a4597 100644 --- a/chrome/browser/chromeos/app_mode/startup_app_launcher.h +++ b/chrome/browser/chromeos/app_mode/startup_app_launcher.h @@ -74,12 +74,25 @@ class StartupAppLauncher std::string client_secret; }; + // A class to check if the app has an update. It invokes BeginInstall + // if the app is not installed or not up-to-date. Otherwise, it invokes + // OnReadyToLaunch. + class AppUpdateChecker; + void OnLaunchSuccess(); void OnLaunchFailure(KioskAppLaunchError::Error error); + void MaybeInstall(); + + // Callbacks from AppUpdateChecker + void OnUpdateCheckNotInstalled(); + void OnUpdateCheckUpdateAvailable(); + void OnUpdateCheckNoUpdate(); + void BeginInstall(); void InstallCallback(bool success, const std::string& error); void OnReadyToLaunch(); + void UpdateAppData(); void InitializeTokenService(); void InitializeNetwork(); @@ -101,6 +114,8 @@ class StartupAppLauncher scoped_refptr<extensions::WebstoreStandaloneInstaller> installer_; KioskOAuthParams auth_params_; + scoped_ptr<AppUpdateChecker> update_checker_; + DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher); }; |