OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 declarations of the installer functions that build | 5 // This file contains the declarations of the installer functions that build |
6 // the WorkItemList used to install the application. | 6 // the WorkItemList used to install the application. |
7 | 7 |
8 #ifndef CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ | 8 #ifndef CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ |
9 #define CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ | 9 #define CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ |
10 #pragma once | 10 #pragma once |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
132 WorkItemList* install_list, | 132 WorkItemList* install_list, |
133 const Product& product); | 133 const Product& product); |
134 | 134 |
135 // Create Version key for a product (if not already present) and sets the new | 135 // Create Version key for a product (if not already present) and sets the new |
136 // product version as the last step. | 136 // product version as the last step. |
137 void AddVersionKeyWorkItems(HKEY root, | 137 void AddVersionKeyWorkItems(HKEY root, |
138 BrowserDistribution* dist, | 138 BrowserDistribution* dist, |
139 const Version& new_version, | 139 const Version& new_version, |
140 WorkItemList* list); | 140 WorkItemList* list); |
141 | 141 |
142 // [Un]Registers Chrome and ChromeLauncher in IE's low rights elevation policy. | 142 // Unregisters the "opv" version of ChromeLauncher from IE's low rights |
robertshield
2011/09/22 20:34:10
Unregisters -> conditionally
| |
143 void AddElevationPolicyWorkItems(const InstallationState& original_state, | 143 // elevation policy. |
144 const InstallerState& installer_state, | 144 void MaybeAddDeleteOldIELowRightsPolicyWorkItems( |
robertshield
2011/09/22 20:34:10
Replace the LowRights bit of the name with "Elevat
| |
145 const Version& new_version, | 145 const InstallerState& installer_state, |
146 WorkItemList* install_list); | 146 WorkItemList* install_list); |
147 | |
148 // Conditionally adds work items to copy IE low rights policies for an in-use | |
149 // update. | |
150 void MaybeAddCopyIELowRightsPolicyWorkItems( | |
robertshield
2011/09/22 20:34:10
ditto
| |
151 const InstallerState& installer_state, | |
152 WorkItemList* install_list); | |
147 | 153 |
148 // Utility method currently shared between install.cc and install_worker.cc | 154 // Utility method currently shared between install.cc and install_worker.cc |
149 void AppendUninstallCommandLineFlags(const InstallerState& installer_state, | 155 void AppendUninstallCommandLineFlags(const InstallerState& installer_state, |
150 const Product& product, | 156 const Product& product, |
151 CommandLine* uninstall_cmd); | 157 CommandLine* uninstall_cmd); |
152 | 158 |
153 // Refreshes the elevation policy on platforms where it is supported. | 159 // Refreshes the elevation policy on platforms where it is supported. |
154 void RefreshElevationPolicy(); | 160 void RefreshElevationPolicy(); |
155 | 161 |
156 // Add work items to add or remove the "quick-enable-cf" to the multi-installer | 162 // Add work items to add or remove the "quick-enable-cf" to the multi-installer |
157 // binaries' version key on the basis of the current operation (represented in | 163 // binaries' version key on the basis of the current operation (represented in |
158 // |installer_state|) and the pre-existing machine configuration (represented in | 164 // |installer_state|) and the pre-existing machine configuration (represented in |
159 // |machine_state|). |setup_path| (the path to the executable currently being | 165 // |machine_state|). |setup_path| (the path to the executable currently being |
160 // run) and |new_version| (the version of the product(s) currently being | 166 // run) and |new_version| (the version of the product(s) currently being |
161 // installed) are required when processing product installation; they are unused | 167 // installed) are required when processing product installation; they are unused |
162 // (and may therefore be NULL) when uninstalling. | 168 // (and may therefore be NULL) when uninstalling. |
163 void AddQuickEnableWorkItems(const InstallerState& installer_state, | 169 void AddQuickEnableWorkItems(const InstallerState& installer_state, |
164 const InstallationState& machine_state, | 170 const InstallationState& machine_state, |
165 const FilePath* setup_path, | 171 const FilePath* setup_path, |
166 const Version* new_version, | 172 const Version* new_version, |
167 WorkItemList* work_item_list); | 173 WorkItemList* work_item_list); |
168 | 174 |
169 } // namespace installer | 175 } // namespace installer |
170 | 176 |
171 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ | 177 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ |
OLD | NEW |