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 |
143 void AddElevationPolicyWorkItems(const InstallationState& original_state, | 143 // elevation policy. |
144 const InstallerState& installer_state, | 144 void AddDeleteOldIELowRightsPolicyWorkItems( |
145 const Version& new_version, | 145 const InstallerState& installer_state, |
146 WorkItemList* install_list); | 146 WorkItemList* install_list); |
| 147 |
| 148 // Adds work items to copy IE low rights policies for an in-use update. |
| 149 void AddCopyIELowRightsPolicyWorkItems(const InstallerState& installer_state, |
| 150 WorkItemList* install_list); |
147 | 151 |
148 // Utility method currently shared between install.cc and install_worker.cc | 152 // Utility method currently shared between install.cc and install_worker.cc |
149 void AppendUninstallCommandLineFlags(const InstallerState& installer_state, | 153 void AppendUninstallCommandLineFlags(const InstallerState& installer_state, |
150 const Product& product, | 154 const Product& product, |
151 CommandLine* uninstall_cmd); | 155 CommandLine* uninstall_cmd); |
152 | 156 |
153 // Refreshes the elevation policy on platforms where it is supported. | 157 // Refreshes the elevation policy on platforms where it is supported. |
154 void RefreshElevationPolicy(); | 158 void RefreshElevationPolicy(); |
155 | 159 |
156 // Add work items to add or remove the "quick-enable-cf" to the multi-installer | 160 // 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 | 161 // binaries' version key on the basis of the current operation (represented in |
158 // |installer_state|) and the pre-existing machine configuration (represented in | 162 // |installer_state|) and the pre-existing machine configuration (represented in |
159 // |machine_state|). |setup_path| (the path to the executable currently being | 163 // |machine_state|). |setup_path| (the path to the executable currently being |
160 // run) and |new_version| (the version of the product(s) currently being | 164 // run) and |new_version| (the version of the product(s) currently being |
161 // installed) are required when processing product installation; they are unused | 165 // installed) are required when processing product installation; they are unused |
162 // (and may therefore be NULL) when uninstalling. | 166 // (and may therefore be NULL) when uninstalling. |
163 void AddQuickEnableWorkItems(const InstallerState& installer_state, | 167 void AddQuickEnableWorkItems(const InstallerState& installer_state, |
164 const InstallationState& machine_state, | 168 const InstallationState& machine_state, |
165 const FilePath* setup_path, | 169 const FilePath* setup_path, |
166 const Version* new_version, | 170 const Version* new_version, |
167 WorkItemList* work_item_list); | 171 WorkItemList* work_item_list); |
168 | 172 |
169 } // namespace installer | 173 } // namespace installer |
170 | 174 |
171 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ | 175 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ |
OLD | NEW |