Index: chrome/browser/chromeos/app_mode/startup_app_launcher.h |
=================================================================== |
--- chrome/browser/chromeos/app_mode/startup_app_launcher.h (revision 246680) |
+++ chrome/browser/chromeos/app_mode/startup_app_launcher.h (working copy) |
@@ -73,12 +73,25 @@ |
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(); |
@@ -103,6 +116,8 @@ |
scoped_refptr<extensions::WebstoreStandaloneInstaller> installer_; |
KioskOAuthParams auth_params_; |
+ scoped_ptr<AppUpdateChecker> update_checker_; |
+ |
DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher); |
}; |