Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(941)

Side by Side Diff: chrome/installer/setup/install_worker.h

Issue 1882923003: Add best-effort/allow rollback flags on WorkItem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simple_list_tests
Patch Set: fix build error Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // |may_fail| states whether this is best effort or not. If |may_fail| is true 122 // If |best_effort| is true, registration or unregistration failure doesn't
123 // then |work_item_list| will still succeed if the registration fails and 123 // cause failure of |work_item_list|.
124 // no registration rollback will be performed.
125 void AddRegisterComDllWorkItems(const base::FilePath& dll_folder, 124 void AddRegisterComDllWorkItems(const base::FilePath& dll_folder,
126 const std::vector<base::FilePath>& dll_files, 125 const std::vector<base::FilePath>& dll_files,
127 bool system_level, 126 bool system_level,
128 bool do_register, 127 bool do_register,
129 bool ignore_failures, 128 bool best_effort,
130 WorkItemList* work_item_list); 129 WorkItemList* work_item_list);
131 130
132 void AddSetMsiMarkerWorkItem(const InstallerState& installer_state, 131 void AddSetMsiMarkerWorkItem(const InstallerState& installer_state,
133 BrowserDistribution* dist, 132 BrowserDistribution* dist,
134 bool set, 133 bool set,
135 WorkItemList* work_item_list); 134 WorkItemList* work_item_list);
136 135
137 // Adds work items to cleanup deprecated per-user registrations. 136 // Adds work items to cleanup deprecated per-user registrations.
138 void AddCleanupDeprecatedPerUserRegistrationsWorkItems(const Product& product, 137 void AddCleanupDeprecatedPerUserRegistrationsWorkItems(const Product& product,
139 WorkItemList* list); 138 WorkItemList* list);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 WorkItemList* install_list); 172 WorkItemList* install_list);
174 173
175 // Adds work items to remove "quick-enable-cf" from the multi-installer 174 // Adds work items to remove "quick-enable-cf" from the multi-installer
176 // binaries' version key. 175 // binaries' version key.
177 void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state, 176 void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state,
178 WorkItemList* work_item_list); 177 WorkItemList* work_item_list);
179 178
180 } // namespace installer 179 } // namespace installer
181 180
182 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ 181 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698