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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 const base::Version* current_version, | 112 const base::Version* current_version, |
113 const base::Version& new_version, | 113 const base::Version& new_version, |
114 WorkItemList* install_list); | 114 WorkItemList* install_list); |
115 | 115 |
116 // Appends registration or unregistration work items to |work_item_list| for the | 116 // Appends registration or unregistration work items to |work_item_list| for the |
117 // COM DLLs whose file names are given in |dll_files| and which reside in the | 117 // COM DLLs whose file names are given in |dll_files| and which reside in the |
118 // path |dll_folder|. | 118 // path |dll_folder|. |
119 // |system_level| specifies whether to call the system or user level DLL | 119 // |system_level| specifies whether to call the system or user level DLL |
120 // registration entry points. | 120 // registration entry points. |
121 // |do_register| says whether to register or unregister. | 121 // |do_register| says whether to register or unregister. |
122 // If |best_effort| is true, registration or unregistration failure doesn't | 122 // |may_fail| states whether this is best effort or not. If |may_fail| is true |
123 // cause failure of |work_item_list|. | 123 // then |work_item_list| will still succeed if the registration fails and |
| 124 // no registration rollback will be performed. |
124 void AddRegisterComDllWorkItems(const base::FilePath& dll_folder, | 125 void AddRegisterComDllWorkItems(const base::FilePath& dll_folder, |
125 const std::vector<base::FilePath>& dll_files, | 126 const std::vector<base::FilePath>& dll_files, |
126 bool system_level, | 127 bool system_level, |
127 bool do_register, | 128 bool do_register, |
128 bool best_effort, | 129 bool ignore_failures, |
129 WorkItemList* work_item_list); | 130 WorkItemList* work_item_list); |
130 | 131 |
131 void AddSetMsiMarkerWorkItem(const InstallerState& installer_state, | 132 void AddSetMsiMarkerWorkItem(const InstallerState& installer_state, |
132 BrowserDistribution* dist, | 133 BrowserDistribution* dist, |
133 bool set, | 134 bool set, |
134 WorkItemList* work_item_list); | 135 WorkItemList* work_item_list); |
135 | 136 |
136 // Adds work items to cleanup deprecated per-user registrations. | 137 // Adds work items to cleanup deprecated per-user registrations. |
137 void AddCleanupDeprecatedPerUserRegistrationsWorkItems(const Product& product, | 138 void AddCleanupDeprecatedPerUserRegistrationsWorkItems(const Product& product, |
138 WorkItemList* list); | 139 WorkItemList* list); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 WorkItemList* install_list); | 173 WorkItemList* install_list); |
173 | 174 |
174 // Adds work items to remove "quick-enable-cf" from the multi-installer | 175 // Adds work items to remove "quick-enable-cf" from the multi-installer |
175 // binaries' version key. | 176 // binaries' version key. |
176 void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state, | 177 void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state, |
177 WorkItemList* work_item_list); | 178 WorkItemList* work_item_list); |
178 | 179 |
179 } // namespace installer | 180 } // namespace installer |
180 | 181 |
181 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ | 182 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ |
OLD | NEW |