| Index: chrome/browser/chromeos/app_mode/startup_app_launcher.h
|
| diff --git a/chrome/browser/chromeos/app_mode/startup_app_launcher.h b/chrome/browser/chromeos/app_mode/startup_app_launcher.h
|
| index 43f7cbf0c910b02714d66ee9daad0a903364fd8b..72a45979f55c17f93af3dcbd8498ff116369d2a9 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);
|
| };
|
|
|
|
|