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 #ifndef CHROME_INSTALLER_UTIL_DELETE_REG_KEY_WORK_ITEM_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_DELETE_REG_KEY_WORK_ITEM_H_ |
6 #define CHROME_INSTALLER_UTIL_DELETE_REG_KEY_WORK_ITEM_H_ | 6 #define CHROME_INSTALLER_UTIL_DELETE_REG_KEY_WORK_ITEM_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 12 matching lines...) Expand all Loading... |
23 public: | 23 public: |
24 virtual ~DeleteRegKeyWorkItem(); | 24 virtual ~DeleteRegKeyWorkItem(); |
25 | 25 |
26 virtual bool Do() OVERRIDE; | 26 virtual bool Do() OVERRIDE; |
27 | 27 |
28 virtual void Rollback() OVERRIDE; | 28 virtual void Rollback() OVERRIDE; |
29 | 29 |
30 private: | 30 private: |
31 friend class WorkItem; | 31 friend class WorkItem; |
32 | 32 |
33 DeleteRegKeyWorkItem(HKEY predefined_root, const std::wstring& path); | 33 DeleteRegKeyWorkItem(HKEY predefined_root, |
| 34 const std::wstring& path, |
| 35 REGSAM wow64_access); |
34 | 36 |
35 // Root key from which we delete the key. The root key can only be | 37 // Root key from which we delete the key. The root key can only be |
36 // one of the predefined keys on Windows. | 38 // one of the predefined keys on Windows. |
37 HKEY predefined_root_; | 39 HKEY predefined_root_; |
38 | 40 |
39 // Path of the key to be deleted. | 41 // Path of the key to be deleted. |
40 std::wstring path_; | 42 std::wstring path_; |
41 | 43 |
| 44 // Whether to force 32-bit or 64-bit view of the target key. |
| 45 REGSAM wow64_access_; |
| 46 |
42 // Backup of the deleted key. | 47 // Backup of the deleted key. |
43 RegistryKeyBackup backup_; | 48 RegistryKeyBackup backup_; |
44 | 49 |
45 DISALLOW_COPY_AND_ASSIGN(DeleteRegKeyWorkItem); | 50 DISALLOW_COPY_AND_ASSIGN(DeleteRegKeyWorkItem); |
46 }; | 51 }; |
47 | 52 |
48 #endif // CHROME_INSTALLER_UTIL_DELETE_REG_KEY_WORK_ITEM_H_ | 53 #endif // CHROME_INSTALLER_UTIL_DELETE_REG_KEY_WORK_ITEM_H_ |
OLD | NEW |