| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H__ | 5 #ifndef CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H__ |
| 6 #define CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H__ | 6 #define CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H__ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <windows.h> | 10 #include <windows.h> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // Add a DeleteRegValueWorkItem that deletes registry value of type REG_SZ | 47 // Add a DeleteRegValueWorkItem that deletes registry value of type REG_SZ |
| 48 // or REG_DWORD. | 48 // or REG_DWORD. |
| 49 bool AddDeleteRegValueWorkItem(HKEY predefined_root, std::wstring key_path, | 49 bool AddDeleteRegValueWorkItem(HKEY predefined_root, std::wstring key_path, |
| 50 std::wstring value_name, bool is_str_type); | 50 std::wstring value_name, bool is_str_type); |
| 51 | 51 |
| 52 // Add a DeleteTreeWorkItem that recursively deletes a file system | 52 // Add a DeleteTreeWorkItem that recursively deletes a file system |
| 53 // hierarchy at the given root path. A key file can be optionally specified | 53 // hierarchy at the given root path. A key file can be optionally specified |
| 54 // by key_path. | 54 // by key_path. |
| 55 bool AddDeleteTreeWorkItem(std::wstring root_path, std::wstring key_path); | 55 bool AddDeleteTreeWorkItem(std::wstring root_path, std::wstring key_path); |
| 56 | 56 |
| 57 // Add a MoveTreeWorkItem to the list of work items. |
| 58 bool AddMoveTreeWorkItem(std::wstring source_path, std::wstring dest_path, |
| 59 std::wstring temp_dir); |
| 60 |
| 57 // Add a SetRegValueWorkItem that sets a registry value with REG_SZ type | 61 // Add a SetRegValueWorkItem that sets a registry value with REG_SZ type |
| 58 // at the key with specified path. | 62 // at the key with specified path. |
| 59 bool AddSetRegValueWorkItem(HKEY predefined_root, std::wstring key_path, | 63 bool AddSetRegValueWorkItem(HKEY predefined_root, std::wstring key_path, |
| 60 std::wstring value_name, std::wstring value_data, | 64 std::wstring value_name, std::wstring value_data, |
| 61 bool overwrite); | 65 bool overwrite); |
| 62 | 66 |
| 63 // Add a SetRegValueWorkItem that sets a registry value with REG_DWORD type | 67 // Add a SetRegValueWorkItem that sets a registry value with REG_DWORD type |
| 64 // at the key with specified path. | 68 // at the key with specified path. |
| 65 bool AddSetRegValueWorkItem(HKEY predefined_root, std::wstring key_path, | 69 bool AddSetRegValueWorkItem(HKEY predefined_root, std::wstring key_path, |
| 66 std::wstring value_name, DWORD value_data, | 70 std::wstring value_name, DWORD value_data, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 88 // The list of WorkItems, in the order of them being added. | 92 // The list of WorkItems, in the order of them being added. |
| 89 WorkItems list_; | 93 WorkItems list_; |
| 90 | 94 |
| 91 // The list of executed WorkItems, in the reverse order of them being | 95 // The list of executed WorkItems, in the reverse order of them being |
| 92 // executed. | 96 // executed. |
| 93 WorkItems executed_list_; | 97 WorkItems executed_list_; |
| 94 }; | 98 }; |
| 95 | 99 |
| 96 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H__ | 100 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H__ |
| 97 | 101 |
| OLD | NEW |