| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // - Register any new dlls and unregister old dlls. | 44 // - Register any new dlls and unregister old dlls. |
| 45 // - If this is an MSI install, ensures that the MSI marker is set, and sets | 45 // - If this is an MSI install, ensures that the MSI marker is set, and sets |
| 46 // it if not. | 46 // it if not. |
| 47 // If these operations are successful, the function returns true, otherwise | 47 // If these operations are successful, the function returns true, otherwise |
| 48 // false. | 48 // false. |
| 49 bool AppendPostInstallTasks(const InstallerState& installer_state, | 49 bool AppendPostInstallTasks(const InstallerState& installer_state, |
| 50 const FilePath& setup_path, | 50 const FilePath& setup_path, |
| 51 const FilePath& new_chrome_exe, | 51 const FilePath& new_chrome_exe, |
| 52 const Version* current_version, | 52 const Version* current_version, |
| 53 const Version& new_version, | 53 const Version& new_version, |
| 54 const FilePath& temp_path, |
| 54 WorkItemList* post_install_task_list); | 55 WorkItemList* post_install_task_list); |
| 55 | 56 |
| 56 // Builds the complete WorkItemList used to build the set of installation steps | 57 // Builds the complete WorkItemList used to build the set of installation steps |
| 57 // needed to lay down one or more installed products. | 58 // needed to lay down one or more installed products. |
| 58 // | 59 // |
| 59 // setup_path: Path to the executable (setup.exe) as it will be copied | 60 // setup_path: Path to the executable (setup.exe) as it will be copied |
| 60 // to Chrome install folder after install is complete | 61 // to Chrome install folder after install is complete |
| 61 // archive_path: Path to the archive (chrome.7z) as it will be copied | 62 // archive_path: Path to the archive (chrome.7z) as it will be copied |
| 62 // to Chrome install folder after install is complete | 63 // to Chrome install folder after install is complete |
| 63 // src_path: the path that contains a complete and unpacked Chrome package | 64 // src_path: the path that contains a complete and unpacked Chrome package |
| 64 // to be installed. | 65 // to be installed. |
| 65 // temp_dir: the path of working directory used during installation. This path | 66 // temp_path: the path of working directory used during installation. This path |
| 66 // does not need to exist. | 67 // does not need to exist. |
| 67 void AddInstallWorkItems(const InstallationState& original_state, | 68 void AddInstallWorkItems(const InstallationState& original_state, |
| 68 const InstallerState& installer_state, | 69 const InstallerState& installer_state, |
| 69 const FilePath& setup_path, | 70 const FilePath& setup_path, |
| 70 const FilePath& archive_path, | 71 const FilePath& archive_path, |
| 71 const FilePath& src_path, | 72 const FilePath& src_path, |
| 72 const FilePath& temp_dir, | 73 const FilePath& temp_path, |
| 73 const Version& new_version, | 74 const Version& new_version, |
| 74 scoped_ptr<Version>* current_version, | 75 scoped_ptr<Version>* current_version, |
| 75 WorkItemList* install_list); | 76 WorkItemList* install_list); |
| 76 | 77 |
| 77 // Appends registration or unregistration work items to |work_item_list| for the | 78 // Appends registration or unregistration work items to |work_item_list| for the |
| 78 // COM DLLs whose file names are given in |dll_files| and which reside in the | 79 // COM DLLs whose file names are given in |dll_files| and which reside in the |
| 79 // path |dll_folder|. | 80 // path |dll_folder|. |
| 80 // |system_level| specifies whether to call the system or user level DLL | 81 // |system_level| specifies whether to call the system or user level DLL |
| 81 // registration entry points. | 82 // registration entry points. |
| 82 // |do_register| says whether to register or unregister. | 83 // |do_register| says whether to register or unregister. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 void AppendUninstallCommandLineFlags(const InstallerState& installer_state, | 132 void AppendUninstallCommandLineFlags(const InstallerState& installer_state, |
| 132 const Product& product, | 133 const Product& product, |
| 133 CommandLine* uninstall_cmd); | 134 CommandLine* uninstall_cmd); |
| 134 | 135 |
| 135 // Refreshes the elevation policy on platforms where it is supported. | 136 // Refreshes the elevation policy on platforms where it is supported. |
| 136 void RefreshElevationPolicy(); | 137 void RefreshElevationPolicy(); |
| 137 | 138 |
| 138 } // namespace installer | 139 } // namespace installer |
| 139 | 140 |
| 140 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ | 141 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ |
| OLD | NEW |