| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 // Create a DeleteRegKeyWorkItem that deletes a registry key at the given | 76 // Create a DeleteRegKeyWorkItem that deletes a registry key at the given |
| 77 // path. | 77 // path. |
| 78 static DeleteRegKeyWorkItem* CreateDeleteRegKeyWorkItem( | 78 static DeleteRegKeyWorkItem* CreateDeleteRegKeyWorkItem( |
| 79 HKEY predefined_root, const std::wstring& path); | 79 HKEY predefined_root, const std::wstring& path); |
| 80 | 80 |
| 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 DWORD type); | |
| 87 | 86 |
| 88 // Create a DeleteTreeWorkItem that recursively deletes a file system | 87 // Create a DeleteTreeWorkItem that recursively deletes a file system |
| 89 // 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 |
| 90 // by key_path. | 89 // by key_path. |
| 91 static DeleteTreeWorkItem* CreateDeleteTreeWorkItem( | 90 static DeleteTreeWorkItem* CreateDeleteTreeWorkItem( |
| 92 const FilePath& root_path, const std::vector<FilePath>& key_paths); | 91 const FilePath& root_path, const std::vector<FilePath>& key_paths); |
| 93 | 92 |
| 94 // Create a MoveTreeWorkItem that recursively moves a file system hierarchy | 93 // Create a MoveTreeWorkItem that recursively moves a file system hierarchy |
| 95 // from source path to destination path. | 94 // from source path to destination path. |
| 96 static MoveTreeWorkItem* CreateMoveTreeWorkItem( | 95 static MoveTreeWorkItem* CreateMoveTreeWorkItem( |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 WorkItem(); | 173 WorkItem(); |
| 175 | 174 |
| 176 // Specifies whether this work item my fail to complete and yet still | 175 // Specifies whether this work item my fail to complete and yet still |
| 177 // return true from Do(). | 176 // return true from Do(). |
| 178 bool ignore_failure_; | 177 bool ignore_failure_; |
| 179 | 178 |
| 180 std::string log_message_; | 179 std::string log_message_; |
| 181 }; | 180 }; |
| 182 | 181 |
| 183 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_ | 182 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_ |
| OLD | NEW |