Chromium Code Reviews| 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 #include "base/string16.h" | |
| 7 | 8 |
| 8 class FilePath; | 9 class FilePath; |
| 9 | 10 |
| 10 namespace chrome_launcher_support { | 11 namespace chrome_launcher_support { |
| 11 | 12 |
| 12 enum InstallationLevel { | 13 enum InstallationLevel { |
| 13 USER_LEVEL_INSTALLATION, | 14 USER_LEVEL_INSTALLATION, |
| 14 SYSTEM_LEVEL_INSTALLATION | 15 SYSTEM_LEVEL_INSTALLATION |
| 15 }; | 16 }; |
| 16 | 17 |
| 17 // Returns the path to an installed chrome.exe, or an empty path. Prefers a | 18 // Returns the path to an installed chrome.exe, or an empty path. Prefers a |
| 18 // system-level installation to a user-level installation. Uses Omaha client | 19 // system-level installation to a user-level installation. Uses Omaha client |
| 19 // state to identify a Chrome installation location. | 20 // state to identify a Chrome installation location. |
| 20 // In non-official builds, to ease development, this will first look for a | 21 // In non-official builds, to ease development, this will first look for a |
| 21 // chrome.exe in the same directory as the current executable. | 22 // chrome.exe in the same directory as the current executable. |
| 22 // The file path returned (if any) is guaranteed to exist. | 23 // The file path returned (if any) is guaranteed to exist. |
| 23 FilePath GetAnyChromePath(); | 24 FilePath GetAnyChromePath(); |
| 24 | 25 |
| 26 // Returns the path to an existing setup.exe at the specified level, if it can | |
| 27 // be found via Omaha client state. | |
| 28 FilePath GetSetupExeForInstallationLevel(InstallationLevel level); | |
| 29 | |
| 25 // Returns the path to an installed chrome.exe at the specified level, if it can | 30 // Returns the path to an installed chrome.exe at the specified level, if it can |
| 26 // be found via Omaha client state. | 31 // be found via Omaha client state. |
| 27 FilePath GetChromePathForInstallationLevel(InstallationLevel level); | 32 FilePath GetChromePathForInstallationLevel(InstallationLevel level); |
| 28 | 33 |
| 34 // TODO: Comments | |
|
erikwright (departed)
2012/09/12 15:53:50
These new methods should be moved out of launcher_
huangs
2012/09/12 19:24:27
Done.
| |
| 35 bool GetAppHostVersionString(string16* version_str); | |
| 36 | |
| 37 // TODO: Comments | |
| 38 bool GetChromeBinariesVersionStringForInstallationLevel(InstallationLevel level, | |
| 39 string16* version_str); | |
| 40 | |
| 41 // TODO: Comments | |
| 42 bool GetAnyChromeBinariesVersionString(string16* version_str); | |
| 43 | |
| 44 // TODO: COmments. | |
| 45 bool UpgradeAppHost(); | |
| 46 | |
| 29 } // namespace chrome_launcher_support | 47 } // namespace chrome_launcher_support |
| 30 | 48 |
| 31 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ | 49 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |
| OLD | NEW |