Index: chrome/installer/launcher_support/chrome_launcher_support.h |
diff --git a/chrome/installer/launcher_support/chrome_launcher_support.h b/chrome/installer/launcher_support/chrome_launcher_support.h |
index 1051a244586e0e337bf2d23253e99904492080f2..30f735330553e88a1158c0d2cc412528044f958a 100644 |
--- a/chrome/installer/launcher_support/chrome_launcher_support.h |
+++ b/chrome/installer/launcher_support/chrome_launcher_support.h |
@@ -5,6 +5,8 @@ |
#ifndef CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |
#define CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |
+#include "base/string16.h" |
+ |
class FilePath; |
namespace chrome_launcher_support { |
@@ -24,6 +26,10 @@ FilePath GetSetupExeForInstallationLevel(InstallationLevel level); |
// exists. |
FilePath GetChromePathForInstallationLevel(InstallationLevel level); |
+// Returns the path to an installed app_host.exe at the specified level, if |
+// it can be found via Omaha client state. |
+FilePath GetAppHostPathForInstallationLevel(InstallationLevel level); |
+ |
// Returns the path to an installed chrome.exe, or an empty path. Prefers a |
// system-level installation to a user-level installation. Uses Omaha client |
// state to identify a Chrome installation location. |
@@ -32,6 +38,23 @@ FilePath GetChromePathForInstallationLevel(InstallationLevel level); |
// The file path returned (if any) is guaranteed to exist. |
FilePath GetAnyChromePath(); |
+// Returns the path to an installed chrome.exe, or an empty path. Prefers a |
+// system-level installation to a user-level installation. Uses Omaha client |
+// state to identify a Chrome installation location. |
+// The file path returned (if any) is guaranteed to exist. |
+// In non-official builds, to ease development, this will first look for a |
+// chrome.exe in the same directory as the current executable. |
+// The file path returned (if any) is guaranteed to exist. |
+FilePath GetAnyAppHostPath(); |
+ |
+// Returns true if App Host is installed (system-level or user-level), |
+// or in the same directory as the current executable. |
+bool IsAppHostPresent(); |
+ |
+// Reads the path to app_host.exe from the value "UninstallString" within the |
+// App Host's "ClientState" registry key. |
+string16 GetQuickEnableAppHostCommand(InstallationLevel level); |
+ |
} // namespace chrome_launcher_support |
#endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |