| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ | 5 #ifndef CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |
| 6 #define CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ | 6 #define CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |
| 7 | 7 |
| 8 namespace base { | 8 namespace base { |
| 9 class FilePath; | 9 class FilePath; |
| 10 } | 10 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // Returns the path to an installed chrome.exe at the specified level, if it can | 29 // Returns the path to an installed chrome.exe at the specified level, if it can |
| 30 // be found via Omaha client state. Prefers the installer from a multi-install, | 30 // be found via Omaha client state. Prefers the installer from a multi-install, |
| 31 // but may also return that of a single-install of Chrome if no multi-install | 31 // but may also return that of a single-install of Chrome if no multi-install |
| 32 // exists. | 32 // exists. |
| 33 base::FilePath GetChromePathForInstallationLevel(InstallationLevel level); | 33 base::FilePath GetChromePathForInstallationLevel(InstallationLevel level); |
| 34 | 34 |
| 35 // Returns the path to an installed app_host.exe at the specified level, if | 35 // Returns the path to an installed app_host.exe at the specified level, if |
| 36 // it can be found via Omaha client state. | 36 // it can be found via Omaha client state. |
| 37 base::FilePath GetAppHostPathForInstallationLevel(InstallationLevel level); | 37 base::FilePath GetAppHostPathForInstallationLevel(InstallationLevel level); |
| 38 | 38 |
| 39 // Returns the path to an installed SxS chrome.exe at the specified level, if |
| 40 // it can be found via Omaha client state. |
| 41 base::FilePath GetChromeSxSPathForInstallationLevel(InstallationLevel level); |
| 42 |
| 39 // Returns the path to an installed chrome.exe, or an empty path. Prefers a | 43 // Returns the path to an installed chrome.exe, or an empty path. Prefers a |
| 40 // system-level installation to a user-level installation. Uses Omaha client | 44 // system-level installation to a user-level installation. Uses Omaha client |
| 41 // state to identify a Chrome installation location. | 45 // state to identify a Chrome installation location. |
| 42 // The file path returned (if any) is guaranteed to exist. | 46 // The file path returned (if any) is guaranteed to exist. |
| 43 base::FilePath GetAnyChromePath(); | 47 base::FilePath GetAnyChromePath(); |
| 44 | 48 |
| 45 // Returns the path to an installed app_host.exe, or an empty path. Prefers a | 49 // Returns the path to an installed app_host.exe, or an empty path. Prefers a |
| 46 // system-level installation to a user-level installation. Uses Omaha client | 50 // system-level installation to a user-level installation. Uses Omaha client |
| 47 // state to identify a App Host installation location. | 51 // state to identify a App Host installation location. |
| 48 // The file path returned (if any) is guaranteed to exist. | 52 // The file path returned (if any) is guaranteed to exist. |
| 49 base::FilePath GetAnyAppHostPath(); | 53 base::FilePath GetAnyAppHostPath(); |
| 50 | 54 |
| 55 // Returns the path to an installed SxS chrome.exe, or an empty path. Prefers a |
| 56 // user-level installation to a system-level installation. Uses Omaha client |
| 57 // state to identify a Chrome Canary installation location. |
| 58 // The file path returned (if any) is guaranteed to exist. |
| 59 base::FilePath GetAnyChromeSxSPath(); |
| 60 |
| 51 // Uninstalls the legacy app launcher by launching setup.exe with the uninstall | 61 // Uninstalls the legacy app launcher by launching setup.exe with the uninstall |
| 52 // arguments from the App Launcher ClientState registry key. The uninstall will | 62 // arguments from the App Launcher ClientState registry key. The uninstall will |
| 53 // run asynchronously. | 63 // run asynchronously. |
| 54 void UninstallLegacyAppLauncher(InstallationLevel level); | 64 void UninstallLegacyAppLauncher(InstallationLevel level); |
| 55 | 65 |
| 56 // Returns true if App Host is installed (system-level or user-level), | 66 // Returns true if App Host is installed (system-level or user-level), |
| 57 // or in the same directory as the current executable. | 67 // or in the same directory as the current executable. |
| 58 bool IsAppHostPresent(); | 68 bool IsAppHostPresent(); |
| 59 | 69 |
| 60 // Returns the app launcher installation state. If the launcher is installed | 70 // Returns the app launcher installation state. If the launcher is installed |
| 61 // at both system level and user level, system level is returned. | 71 // at both system level and user level, system level is returned. |
| 62 InstallationState GetAppLauncherInstallationState(); | 72 InstallationState GetAppLauncherInstallationState(); |
| 63 | 73 |
| 64 // Returns true if App Launcher is installed (system-level or user-level). | 74 // Returns true if App Launcher is installed (system-level or user-level). |
| 65 bool IsAppLauncherPresent(); | 75 bool IsAppLauncherPresent(); |
| 66 | 76 |
| 67 // Returns true if the Chrome browser is installed (system-level or user-level). | 77 // Returns true if the Chrome browser is installed (system-level or user-level). |
| 68 // If this is running in an official build, it will check if a non-canary build | 78 // If this is running in an official build, it will check if a non-canary build |
| 69 // if installed. If it is not an official build, it will always return true. | 79 // if installed. If it is not an official build, it will always return true. |
| 70 bool IsChromeBrowserPresent(); | 80 bool IsChromeBrowserPresent(); |
| 71 | 81 |
| 72 } // namespace chrome_launcher_support | 82 } // namespace chrome_launcher_support |
| 73 | 83 |
| 74 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ | 84 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |
| OLD | NEW |