| 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_SET_REG_VALUE_WORK_ITEM_H__ | 5 #ifndef CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ |
| 6 #define CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ | 6 #define CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Root key of the target key under which the value is set. The root key can | 59 // Root key of the target key under which the value is set. The root key can |
| 60 // only be one of the predefined keys on Windows. | 60 // only be one of the predefined keys on Windows. |
| 61 HKEY predefined_root_; | 61 HKEY predefined_root_; |
| 62 | 62 |
| 63 // Path of the target key under which the value is set. | 63 // Path of the target key under which the value is set. |
| 64 std::wstring key_path_; | 64 std::wstring key_path_; |
| 65 | 65 |
| 66 // Name of the value to be set. | 66 // Name of the value to be set. |
| 67 std::wstring value_name_; | 67 std::wstring value_name_; |
| 68 | 68 |
| 69 // Data of the value to be set. | |
| 70 std::wstring value_data_str_; // if data is of type REG_SZ | |
| 71 DWORD value_data_dword_; // if data is of type REG_DWORD | |
| 72 int64 value_data_qword_; // if data is of type REG_QWORD | |
| 73 | |
| 74 // Whether to overwrite the existing value under the target key. | 69 // Whether to overwrite the existing value under the target key. |
| 75 bool overwrite_; | 70 bool overwrite_; |
| 76 | 71 |
| 77 // Type of data to store | 72 // Type of data to store |
| 78 DWORD type_; | 73 DWORD type_; |
| 74 std::vector<uint8> value_; |
| 75 DWORD previous_type_; |
| 76 std::vector<uint8> previous_value_; |
| 79 | 77 |
| 80 SettingStatus status_; | 78 SettingStatus status_; |
| 81 | |
| 82 // Data of the previous value. | |
| 83 std::wstring previous_value_str_; // if data is of type REG_SZ | |
| 84 DWORD previous_value_dword_; // if data is of type REG_DWORD | |
| 85 int64 previous_value_qword_; // if data is of type REG_QWORD | |
| 86 }; | 79 }; |
| 87 | 80 |
| 88 #endif // CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ | 81 #endif // CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ |
| OLD | NEW |