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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 WorkItemList* install_list); | 129 WorkItemList* install_list); |
130 | 130 |
131 // Utility method currently shared between install.cc and install_worker.cc | 131 // Utility method currently shared between install.cc and install_worker.cc |
132 void AppendUninstallCommandLineFlags(const InstallerState& installer_state, | 132 void AppendUninstallCommandLineFlags(const InstallerState& installer_state, |
133 const Product& product, | 133 const Product& product, |
134 CommandLine* uninstall_cmd); | 134 CommandLine* uninstall_cmd); |
135 | 135 |
136 // Refreshes the elevation policy on platforms where it is supported. | 136 // Refreshes the elevation policy on platforms where it is supported. |
137 void RefreshElevationPolicy(); | 137 void RefreshElevationPolicy(); |
138 | 138 |
| 139 // Add work items to add or remove the "quick-enable-cf" to the multi-installer |
| 140 // binaries' version key on the basis of the current operation (represented in |
| 141 // |installer_state|) and the pre-existing machine configuration (represented in |
| 142 // |machine_state|). |setup_path| (the path to the executable currently being |
| 143 // run) and |new_version| (the version of the product(s) currently being |
| 144 // installed) are required when processing product installation; they are unused |
| 145 // (and may therefore be NULL) when uninstalling. |
| 146 void AddQuickEnableWorkItems(const InstallerState& installer_state, |
| 147 const InstallationState& machine_state, |
| 148 const FilePath* setup_path, |
| 149 const Version* new_version, |
| 150 WorkItemList* work_item_list); |
| 151 |
139 } // namespace installer | 152 } // namespace installer |
140 | 153 |
141 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ | 154 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ |
OLD | NEW |