Chromium Code Reviews| 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..60093e3b83e823d4050af56f84f7aed5e62191dc 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/win/scoped_handle.h" |
|
erikwright (departed)
2012/10/03 15:58:35
forward-decl
huangs
2012/10/03 20:09:47
The definition was
typedef GenericScopedHandle<Ha
|
| + |
| 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,19 @@ 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. |
| +FilePath GetAnyAppHostPath(); |
|
erikwright (departed)
2012/10/03 15:58:35
Add behaviour analogous to GetAnyChromePath's:
//
huangs
2012/10/03 20:09:47
Done.
|
| + |
| +// Returns true if App Host is installed (system-level or user-level). |
|
erikwright (departed)
2012/10/03 15:58:35
or in the same directory as the current executable
huangs
2012/10/03 20:09:47
Done.
|
| +bool IsAppHostPresent(); |
| + |
| +// Launches the Google Update command to quick-enable App Host. |
| +// Returns true if the command is launched. |
| +bool LaunchQuickEnableAppHost(base::win::ScopedHandle* process); |
| + |
| } // namespace chrome_launcher_support |
| #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |