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 // Base class for managing an action of a sequence of actions to be carried | 5 // Base class for managing an action of a sequence of actions to be carried |
6 // out during install/update/uninstall. Supports rollback of actions if this | 6 // out during install/update/uninstall. Supports rollback of actions if this |
7 // process fails. | 7 // process fails. |
8 | 8 |
9 #ifndef CHROME_INSTALLER_UTIL_WORK_ITEM_H_ | 9 #ifndef CHROME_INSTALLER_UTIL_WORK_ITEM_H_ |
10 #define CHROME_INSTALLER_UTIL_WORK_ITEM_H_ | 10 #define CHROME_INSTALLER_UTIL_WORK_ITEM_H_ |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // Create a DeleteRegValueWorkItem that deletes a registry value | 81 // Create a DeleteRegValueWorkItem that deletes a registry value |
82 static DeleteRegValueWorkItem* CreateDeleteRegValueWorkItem( | 82 static DeleteRegValueWorkItem* CreateDeleteRegValueWorkItem( |
83 HKEY predefined_root, | 83 HKEY predefined_root, |
84 const std::wstring& key_path, | 84 const std::wstring& key_path, |
85 const std::wstring& value_name); | 85 const std::wstring& value_name); |
86 | 86 |
87 // Create a DeleteTreeWorkItem that recursively deletes a file system | 87 // Create a DeleteTreeWorkItem that recursively deletes a file system |
88 // hierarchy at the given root path. A key file can be optionally specified | 88 // hierarchy at the given root path. A key file can be optionally specified |
89 // by key_path. | 89 // by key_path. |
90 static DeleteTreeWorkItem* CreateDeleteTreeWorkItem( | 90 static DeleteTreeWorkItem* CreateDeleteTreeWorkItem( |
91 const FilePath& root_path, const std::vector<FilePath>& key_paths); | 91 const FilePath& root_path, |
| 92 const FilePath& temp_path, |
| 93 const std::vector<FilePath>& key_paths); |
92 | 94 |
93 // Create a MoveTreeWorkItem that recursively moves a file system hierarchy | 95 // Create a MoveTreeWorkItem that recursively moves a file system hierarchy |
94 // from source path to destination path. | 96 // from source path to destination path. |
95 static MoveTreeWorkItem* CreateMoveTreeWorkItem( | 97 static MoveTreeWorkItem* CreateMoveTreeWorkItem( |
96 const FilePath& source_path, | 98 const FilePath& source_path, |
97 const FilePath& dest_path, | 99 const FilePath& dest_path, |
98 const FilePath& temp_dir); | 100 const FilePath& temp_dir); |
99 | 101 |
100 // Create a SetRegValueWorkItem that sets a registry value with REG_SZ type | 102 // Create a SetRegValueWorkItem that sets a registry value with REG_SZ type |
101 // at the key with specified path. | 103 // at the key with specified path. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 WorkItem(); | 175 WorkItem(); |
174 | 176 |
175 // Specifies whether this work item my fail to complete and yet still | 177 // Specifies whether this work item my fail to complete and yet still |
176 // return true from Do(). | 178 // return true from Do(). |
177 bool ignore_failure_; | 179 bool ignore_failure_; |
178 | 180 |
179 std::string log_message_; | 181 std::string log_message_; |
180 }; | 182 }; |
181 | 183 |
182 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_ | 184 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_ |
OLD | NEW |