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 } |
11 | 11 |
12 namespace chrome_launcher_support { | 12 namespace chrome_launcher_support { |
13 | 13 |
14 enum InstallationLevel { | 14 enum InstallationLevel { |
15 USER_LEVEL_INSTALLATION, | 15 USER_LEVEL_INSTALLATION, |
16 SYSTEM_LEVEL_INSTALLATION, | 16 SYSTEM_LEVEL_INSTALLATION, |
17 }; | 17 }; |
18 | 18 |
19 // Returns the path to an installed chrome.exe at the specified level, if it can | 19 // Returns the path to an installed chrome.exe at the specified level, if it can |
20 // be found via Omaha client state. Prefers the installer from a multi-install, | 20 // be found via Omaha client state. Prefers the installer from a multi-install, |
21 // but may also return that of a single-install of Chrome if no multi-install | 21 // but may also return that of a single-install of Chrome if no multi-install |
22 // exists. | 22 // exists. |
23 base::FilePath GetChromePathForInstallationLevel(InstallationLevel level); | 23 base::FilePath GetChromePathForInstallationLevel(InstallationLevel level); |
24 | 24 |
25 // Returns the path to an installed SxS chrome.exe at the specified level, if | |
grt (UTC plus 2)
2014/07/30 15:05:37
sorry for deleting your code. :-)
jackhou1
2014/07/31 03:24:56
Acceptable collateral damage from a worthwhile cle
| |
26 // it can be found via Omaha client state. | |
27 base::FilePath GetChromeSxSPathForInstallationLevel(InstallationLevel level); | |
28 | |
25 // Returns the path to an installed chrome.exe, or an empty path. Prefers a | 29 // Returns the path to an installed chrome.exe, or an empty path. Prefers a |
26 // system-level installation to a user-level installation. Uses Omaha client | 30 // system-level installation to a user-level installation. Uses Omaha client |
27 // state to identify a Chrome installation location. | 31 // state to identify a Chrome installation location. |
28 // The file path returned (if any) is guaranteed to exist. | 32 // The file path returned (if any) is guaranteed to exist. |
29 base::FilePath GetAnyChromePath(); | 33 base::FilePath GetAnyChromePath(); |
30 | 34 |
35 // Returns the path to an installed SxS chrome.exe, or an empty path. Prefers a | |
36 // user-level installation to a system-level installation. Uses Omaha client | |
37 // state to identify a Chrome Canary installation location. | |
38 // The file path returned (if any) is guaranteed to exist. | |
39 base::FilePath GetAnyChromeSxSPath(); | |
40 | |
31 } // namespace chrome_launcher_support | 41 } // namespace chrome_launcher_support |
32 | 42 |
33 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ | 43 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |
OLD | NEW |