| OLD | NEW |
| 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 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 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // do a few post install tasks: | 56 // do a few post install tasks: |
| 57 // - Handle the case of in-use-update by updating "opv" (old version) key or | 57 // - Handle the case of in-use-update by updating "opv" (old version) key or |
| 58 // deleting it if not required. | 58 // deleting it if not required. |
| 59 // - Register any new dlls and unregister old dlls. | 59 // - Register any new dlls and unregister old dlls. |
| 60 // - If this is an MSI install, ensures that the MSI marker is set, and sets | 60 // - If this is an MSI install, ensures that the MSI marker is set, and sets |
| 61 // it if not. | 61 // it if not. |
| 62 // If these operations are successful, the function returns true, otherwise | 62 // If these operations are successful, the function returns true, otherwise |
| 63 // false. | 63 // false. |
| 64 bool AppendPostInstallTasks(const InstallerState& installer_state, | 64 bool AppendPostInstallTasks(const InstallerState& installer_state, |
| 65 const FilePath& setup_path, | 65 const FilePath& setup_path, |
| 66 const FilePath& new_chrome_exe, | |
| 67 const Version* current_version, | 66 const Version* current_version, |
| 68 const Version& new_version, | 67 const Version& new_version, |
| 69 const FilePath& temp_path, | 68 const FilePath& temp_path, |
| 70 WorkItemList* post_install_task_list); | 69 WorkItemList* post_install_task_list); |
| 71 | 70 |
| 72 // Builds the complete WorkItemList used to build the set of installation steps | 71 // Builds the complete WorkItemList used to build the set of installation steps |
| 73 // needed to lay down one or more installed products. | 72 // needed to lay down one or more installed products. |
| 74 // | 73 // |
| 75 // setup_path: Path to the executable (setup.exe) as it will be copied | 74 // setup_path: Path to the executable (setup.exe) as it will be copied |
| 76 // to Chrome install folder after install is complete | 75 // to Chrome install folder after install is complete |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // Refreshes the elevation policy on platforms where it is supported. | 164 // Refreshes the elevation policy on platforms where it is supported. |
| 166 void RefreshElevationPolicy(); | 165 void RefreshElevationPolicy(); |
| 167 | 166 |
| 168 // Add work items to add or remove the "quick-enable-cf" to the multi-installer | 167 // Add work items to add or remove the "quick-enable-cf" to the multi-installer |
| 169 // binaries' version key on the basis of the current operation (represented in | 168 // binaries' version key on the basis of the current operation (represented in |
| 170 // |installer_state|) and the pre-existing machine configuration (represented in | 169 // |installer_state|) and the pre-existing machine configuration (represented in |
| 171 // |machine_state|). |setup_path| (the path to the executable currently being | 170 // |machine_state|). |setup_path| (the path to the executable currently being |
| 172 // run) and |new_version| (the version of the product(s) currently being | 171 // run) and |new_version| (the version of the product(s) currently being |
| 173 // installed) are required when processing product installation; they are unused | 172 // installed) are required when processing product installation; they are unused |
| 174 // (and may therefore be NULL) when uninstalling. | 173 // (and may therefore be NULL) when uninstalling. |
| 175 void AddQuickEnableWorkItems(const InstallerState& installer_state, | 174 void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state, |
| 176 const InstallationState& machine_state, | 175 const InstallationState& machine_state, |
| 177 const FilePath* setup_path, | 176 const FilePath* setup_path, |
| 178 const Version* new_version, | 177 const Version* new_version, |
| 179 WorkItemList* work_item_list); | 178 WorkItemList* work_item_list); |
| 179 |
| 180 // Add work items to add or remove the "quick-enable-application-host" command |
| 181 // to the multi-installer binaries' version key on the basis of the current |
| 182 // operation (represented in |installer_state|) and the pre-existing machine |
| 183 // configuration (represented in |machine_state|). |setup_path| (the path to |
| 184 // the executable currently being run) and |new_version| (the version of the |
| 185 // product(s) currently being installed) are required when processing product |
| 186 // installation; they are unused (and may therefore be NULL) when uninstalling. |
| 187 void AddQuickEnableApplicationHostWorkItems( |
| 188 const InstallerState& installer_state, |
| 189 const InstallationState& machine_state, |
| 190 const FilePath* setup_path, |
| 191 const Version* new_version, |
| 192 WorkItemList* work_item_list); |
| 180 | 193 |
| 181 } // namespace installer | 194 } // namespace installer |
| 182 | 195 |
| 183 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ | 196 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ |
| OLD | NEW |