Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Side by Side Diff: chrome/installer/launcher_support/chrome_launcher_support.h

Issue 10905238: If Chrome Binaries version > App Host version, then update App Host. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Including version info in app_hosts.exe; making GetChromePathForInstallationLevel() check Chrome in… Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 class FilePath; 8 class FilePath;
9 9
10 namespace chrome_launcher_support { 10 namespace chrome_launcher_support {
11 11
12 enum InstallationLevel { 12 enum InstallationLevel {
13 USER_LEVEL_INSTALLATION, 13 USER_LEVEL_INSTALLATION,
14 SYSTEM_LEVEL_INSTALLATION 14 SYSTEM_LEVEL_INSTALLATION
15 }; 15 };
16 16
17 // Returns the path to an existing setup.exe at the specified level, if it can
18 // be found via Omaha client state.
19 FilePath GetSetupExeForInstallationLevel(InstallationLevel level);
20
21 // Returns the path to an installed chrome.exe at the specified level, if it can
22 // be found via Omaha client state. Prefers the installer from a multi-install,
23 // but may also return that of a single-install of Chrome if no multi-install
24 // exists.
25 FilePath GetChromePathForInstallationLevel(InstallationLevel level);
26
17 // Returns the path to an installed chrome.exe, or an empty path. Prefers a 27 // 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 28 // system-level installation to a user-level installation. Uses Omaha client
19 // state to identify a Chrome installation location. 29 // state to identify a Chrome installation location.
20 // In non-official builds, to ease development, this will first look for a 30 // In non-official builds, to ease development, this will first look for a
21 // chrome.exe in the same directory as the current executable. 31 // chrome.exe in the same directory as the current executable.
22 // The file path returned (if any) is guaranteed to exist. 32 // The file path returned (if any) is guaranteed to exist.
23 FilePath GetAnyChromePath(); 33 FilePath GetAnyChromePath();
24 34
25 // Returns the path to an installed chrome.exe at the specified level, if it can
26 // be found via Omaha client state.
27 FilePath GetChromePathForInstallationLevel(InstallationLevel level);
28
29 } // namespace chrome_launcher_support 35 } // namespace chrome_launcher_support
30 36
31 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_ 37 #endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698