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

Side by Side Diff: chrome/installer/setup/install.h

Issue 109673004: Revert "Update all users of base::Version to explicitly specify the namespace, and clean up the hea… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/service_process_util_mac.mm ('k') | chrome/installer/setup/install.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file contains the specification of setup main functions. 5 // This file contains the specification of setup main functions.
6 6
7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_ 7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_
8 #define CHROME_INSTALLER_SETUP_INSTALL_H_ 8 #define CHROME_INSTALLER_SETUP_INSTALL_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // Escape |att_value| as per the XML AttValue production 52 // Escape |att_value| as per the XML AttValue production
53 // (http://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue) for a value in 53 // (http://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue) for a value in
54 // single quotes. 54 // single quotes.
55 void EscapeXmlAttributeValueInSingleQuotes(base::string16* att_value); 55 void EscapeXmlAttributeValueInSingleQuotes(base::string16* att_value);
56 56
57 // Creates VisualElementsManifest.xml beside chrome.exe in |src_path| if 57 // Creates VisualElementsManifest.xml beside chrome.exe in |src_path| if
58 // |src_path|\VisualElements exists. 58 // |src_path|\VisualElements exists.
59 // Returns true unless the manifest is supposed to be created, but fails to be. 59 // Returns true unless the manifest is supposed to be created, but fails to be.
60 bool CreateVisualElementsManifest(const base::FilePath& src_path, 60 bool CreateVisualElementsManifest(const base::FilePath& src_path,
61 const base::Version& version); 61 const Version& version);
62 62
63 // Overwrites shortcuts (desktop, quick launch, and start menu) if they are 63 // Overwrites shortcuts (desktop, quick launch, and start menu) if they are
64 // present on the system. 64 // present on the system.
65 // |prefs| can affect the behavior of this method through 65 // |prefs| can affect the behavior of this method through
66 // kDoNotCreateDesktopShortcut, kDoNotCreateQuickLaunchShortcut, and 66 // kDoNotCreateDesktopShortcut, kDoNotCreateQuickLaunchShortcut, and
67 // kAltShortcutText. 67 // kAltShortcutText.
68 // |install_level| specifies whether to install per-user shortcuts or shortcuts 68 // |install_level| specifies whether to install per-user shortcuts or shortcuts
69 // for all users on the system (this should only be used to update legacy 69 // for all users on the system (this should only be used to update legacy
70 // system-level installs). 70 // system-level installs).
71 // If |install_operation| is a creation command, appropriate shortcuts will be 71 // If |install_operation| is a creation command, appropriate shortcuts will be
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // is responsible for cleaning up install_temp_path. 107 // is responsible for cleaning up install_temp_path.
108 InstallStatus InstallOrUpdateProduct( 108 InstallStatus InstallOrUpdateProduct(
109 const InstallationState& original_state, 109 const InstallationState& original_state,
110 const InstallerState& installer_state, 110 const InstallerState& installer_state,
111 const base::FilePath& setup_path, 111 const base::FilePath& setup_path,
112 const base::FilePath& archive_path, 112 const base::FilePath& archive_path,
113 const base::FilePath& install_temp_path, 113 const base::FilePath& install_temp_path,
114 const base::FilePath& src_path, 114 const base::FilePath& src_path,
115 const base::FilePath& prefs_path, 115 const base::FilePath& prefs_path,
116 const installer::MasterPreferences& prefs, 116 const installer::MasterPreferences& prefs,
117 const base::Version& new_version); 117 const Version& new_version);
118 118
119 // Performs installation-related tasks following an OS upgrade. 119 // Performs installation-related tasks following an OS upgrade.
120 // |chrome| The installed product (must be a browser). 120 // |chrome| The installed product (must be a browser).
121 void HandleOsUpgradeForBrowser(const InstallerState& installer_state, 121 void HandleOsUpgradeForBrowser(const InstallerState& installer_state,
122 const Product& chrome); 122 const Product& chrome);
123 123
124 // Performs per-user installation-related tasks on Active Setup (ran on first 124 // Performs per-user installation-related tasks on Active Setup (ran on first
125 // login for each user post system-level Chrome install). 125 // login for each user post system-level Chrome install).
126 // |installation_root|: The root of this install (i.e. the directory in which 126 // |installation_root|: The root of this install (i.e. the directory in which
127 // chrome.exe is installed). 127 // chrome.exe is installed).
128 // Shortcut creation is skipped if the First Run beacon is present (unless 128 // Shortcut creation is skipped if the First Run beacon is present (unless
129 // |force| is set to true). 129 // |force| is set to true).
130 // |chrome| The installed product (must be a browser). 130 // |chrome| The installed product (must be a browser).
131 void HandleActiveSetupForBrowser(const base::FilePath& installation_root, 131 void HandleActiveSetupForBrowser(const base::FilePath& installation_root,
132 const Product& chrome, 132 const Product& chrome,
133 bool force); 133 bool force);
134 134
135 // Launches app_host.exe to install content from web store (non-blocking). 135 // Launches app_host.exe to install content from web store (non-blocking).
136 // Returns true on successful execution (although successful installation 136 // Returns true on successful execution (although successful installation
137 // is not guaranteed). 137 // is not guaranteed).
138 bool InstallFromWebstore(const std::string& app_code); 138 bool InstallFromWebstore(const std::string& app_code);
139 139
140 } // namespace installer 140 } // namespace installer
141 141
142 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ 142 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_
OLDNEW
« no previous file with comments | « chrome/common/service_process_util_mac.mm ('k') | chrome/installer/setup/install.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698