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 class Version; |
10 } | 11 } |
11 | 12 |
12 namespace chrome_launcher_support { | 13 namespace chrome_launcher_support { |
13 | 14 |
14 enum InstallationLevel { | 15 enum InstallationLevel { |
15 USER_LEVEL_INSTALLATION, | 16 USER_LEVEL_INSTALLATION, |
16 SYSTEM_LEVEL_INSTALLATION, | 17 SYSTEM_LEVEL_INSTALLATION, |
17 }; | 18 }; |
18 | 19 |
19 enum InstallationState { | 20 enum InstallationState { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 InstallationState GetAppLauncherInstallationState(); | 62 InstallationState GetAppLauncherInstallationState(); |
62 | 63 |
63 // Returns true if App Launcher is installed (system-level or user-level). | 64 // Returns true if App Launcher is installed (system-level or user-level). |
64 bool IsAppLauncherPresent(); | 65 bool IsAppLauncherPresent(); |
65 | 66 |
66 // Returns true if the Chrome browser is installed (system-level or user-level). | 67 // Returns true if the Chrome browser is installed (system-level or user-level). |
67 // If this is running in an official build, it will check if a non-canary build | 68 // If this is running in an official build, it will check if a non-canary build |
68 // if installed. If it is not an official build, it will always return true. | 69 // if installed. If it is not an official build, it will always return true. |
69 bool IsChromeBrowserPresent(); | 70 bool IsChromeBrowserPresent(); |
70 | 71 |
| 72 // Returns true if a given |version| of App Launcher uses legacy app_host.exe. |
| 73 bool HasLegacyAppHostExe(const base::Version& version); |
| 74 |
71 } // namespace chrome_launcher_support | 75 } // namespace chrome_launcher_support |
72 | 76 |
73 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ | 77 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ |
OLD | NEW |