| 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_COPY_REG_KEY_WORK_ITEM_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_COPY_REG_KEY_WORK_ITEM_H_ |
| 6 #define CHROME_INSTALLER_UTIL_COPY_REG_KEY_WORK_ITEM_H_ | 6 #define CHROME_INSTALLER_UTIL_COPY_REG_KEY_WORK_ITEM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 private: | 26 private: |
| 27 // Grant WorkItem access to the ctor (required by the existing WorkItem | 27 // Grant WorkItem access to the ctor (required by the existing WorkItem |
| 28 // design). | 28 // design). |
| 29 friend class WorkItem; | 29 friend class WorkItem; |
| 30 | 30 |
| 31 // Neither |source_key_path| nor |dest_key_path| may be empty. | 31 // Neither |source_key_path| nor |dest_key_path| may be empty. |
| 32 // Only ALWAYS and IF_NOT_PRESENT are supported for |overwrite_option|. | 32 // Only ALWAYS and IF_NOT_PRESENT are supported for |overwrite_option|. |
| 33 CopyRegKeyWorkItem(HKEY predefined_key, | 33 CopyRegKeyWorkItem(HKEY predefined_key, |
| 34 const std::wstring& source_key_path, | 34 const std::wstring& source_key_path, |
| 35 const std::wstring& dest_key_path, | 35 const std::wstring& dest_key_path, |
| 36 CopyOverWriteOption overwrite_option); | 36 CopyOverWriteOption overwrite_option, |
| 37 RegWow64ViewOption reg_wow64_option); |
| 37 | 38 |
| 38 // Root key in which we operate. The root key must be one of the predefined | 39 // Root key in which we operate. The root key must be one of the predefined |
| 39 // keys on Windows. | 40 // keys on Windows. |
| 40 HKEY predefined_root_; | 41 HKEY predefined_root_; |
| 41 | 42 |
| 42 // Path of the key to be copied. | 43 // Path of the key to be copied. |
| 43 std::wstring source_key_path_; | 44 std::wstring source_key_path_; |
| 44 | 45 |
| 45 // Path of the destination key. | 46 // Path of the destination key. |
| 46 std::wstring dest_key_path_; | 47 std::wstring dest_key_path_; |
| 47 | 48 |
| 48 // WorkItem::ALWAYS or WorkItem::IF_NOT_PRESENT. | 49 // WorkItem::ALWAYS or WorkItem::IF_NOT_PRESENT. |
| 49 CopyOverWriteOption overwrite_option_; | 50 CopyOverWriteOption overwrite_option_; |
| 50 | 51 |
| 52 // Whether to force 32-bit or 64-bit view of the target key. |
| 53 RegWow64ViewOption reg_wow64_option_; |
| 54 |
| 51 // Backup of the destination key. | 55 // Backup of the destination key. |
| 52 RegistryKeyBackup backup_; | 56 RegistryKeyBackup backup_; |
| 53 | 57 |
| 54 // Set to true after the destination is cleared for the copy. | 58 // Set to true after the destination is cleared for the copy. |
| 55 bool cleared_destination_; | 59 bool cleared_destination_; |
| 56 | 60 |
| 57 DISALLOW_COPY_AND_ASSIGN(CopyRegKeyWorkItem); | 61 DISALLOW_COPY_AND_ASSIGN(CopyRegKeyWorkItem); |
| 58 }; | 62 }; |
| 59 | 63 |
| 60 #endif // CHROME_INSTALLER_UTIL_COPY_REG_KEY_WORK_ITEM_H_ | 64 #endif // CHROME_INSTALLER_UTIL_COPY_REG_KEY_WORK_ITEM_H_ |
| OLD | NEW |