Roll src/third_party/WebKit 116cf7f:79abaa8 (svn 189234:189235)
[chromium-blink-merge.git] / chrome / installer / launcher_support / chrome_launcher_support.h
blob094f88443391d114e3dd1ba5f75744cfb73d35fa
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
3 // found in the LICENSE file.
5 #ifndef CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
6 #define CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
8 namespace base {
9 class FilePath;
12 namespace chrome_launcher_support {
14 enum InstallationLevel {
15 USER_LEVEL_INSTALLATION,
16 SYSTEM_LEVEL_INSTALLATION,
19 // Returns the path to an installed chrome.exe at the specified level, if it can
20 // be found in the registry. Prefers the installer from a multi-install, but may
21 // also return that of a single-install of Chrome if no multi-install exists.
22 // If |is_sxs| is true, gets the path to the SxS (Canary) version of chrome.exe.
23 base::FilePath GetChromePathForInstallationLevel(InstallationLevel level,
24 bool is_sxs);
26 // Returns the path to an installed chrome.exe, or an empty path. Prefers a
27 // system-level installation to a user-level installation. Uses the registry to
28 // identify a Chrome installation location. If |is_sxs| is true, gets the path
29 // to the SxS (Canary) version of chrome.exe. The file path returned (if any) is
30 // guaranteed to exist.
31 base::FilePath GetAnyChromePath(bool is_sxs);
33 } // namespace chrome_launcher_support
35 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_