Index: chrome/browser/extensions/crx_installer.h |
diff --git a/chrome/browser/extensions/crx_installer.h b/chrome/browser/extensions/crx_installer.h |
index 6f84a4915df447b5d213d82288b81afe8969e592..c78081dd38148d4f57e778e396f9f5718a7e09a8 100644 |
--- a/chrome/browser/extensions/crx_installer.h |
+++ b/chrome/browser/extensions/crx_installer.h |
@@ -31,7 +31,7 @@ class RequirementsChecker; |
// |
// Installing a CRX is a multi-step process, including unpacking the crx, |
// validating it, prompting the user, and installing. Since many of these |
-// steps must occur on the file thread, this class contains a copy of all data |
+// steps must occur on the FILE thread, this class contains a copy of all data |
// necessary to do its job. (This also minimizes external dependencies for |
// easier testing). |
// |
@@ -220,8 +220,17 @@ class CrxInstaller |
// that it is OK to install this extension. |
void ConfirmInstall(); |
- // Runs on File thread. Install the unpacked extension into the profile and |
- // notify the frontend. |
+ // Runs on FILE thread. Ensures that app is not downgraded. If App Host is |
+ // not installed, calls installer and posts OnAppHostInstallationComplete() |
+ // as call back. Else proceeds to CompleteInstall(). |
+ void BeginInstall(); |
+ |
+ // Runs on FILE thread. Callback function for AppHostInstaller. |
+ // If not |success|, shows error message. Else proceeds to CompleteInstall(). |
+ void OnAppHostInstallationComplete(bool success); |
+ |
+ // Runs on FILE thread. Installs the unpacked extension into the profile and |
+ // notifies the frontend. |
void CompleteInstall(); |
// Result reporting. |
@@ -312,7 +321,7 @@ class CrxInstaller |
// The client we will work with to do the installation. This can be NULL, in |
// which case the install is silent. |
- // NOTE: we may be deleted on the file thread. To ensure the UI is deleted on |
+ // NOTE: we may be deleted on the FILE thread. To ensure the UI is deleted on |
// the main thread we don't use a scoped_ptr here. |
ExtensionInstallPrompt* client_; |