Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: chrome/installer/util/set_reg_value_work_item.h

Issue 282363003: Add WOW64 support to the installer registry work items (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
39 // some errors like the key does not exist. 39 // some errors like the key does not exist.
40 VALUE_UNCHANGED, 40 VALUE_UNCHANGED,
41 // The status after Do and Rollback is called. 41 // The status after Do and Rollback is called.
42 VALUE_ROLL_BACK 42 VALUE_ROLL_BACK
43 }; 43 };
44 44
45 SetRegValueWorkItem(HKEY predefined_root, 45 SetRegValueWorkItem(HKEY predefined_root,
46 const std::wstring& key_path, 46 const std::wstring& key_path,
47 const std::wstring& value_name, 47 const std::wstring& value_name,
48 const std::wstring& value_data, 48 const std::wstring& value_data,
49 bool overwrite); 49 bool overwrite, RegWow64ViewOption reg_wow64_option);
50 50
51 SetRegValueWorkItem(HKEY predefined_root, const std::wstring& key_path, 51 SetRegValueWorkItem(HKEY predefined_root, const std::wstring& key_path,
52 const std::wstring& value_name, DWORD value_data, 52 const std::wstring& value_name, DWORD value_data,
53 bool overwrite); 53 bool overwrite, RegWow64ViewOption reg_wow64_option);
54 54
55 SetRegValueWorkItem(HKEY predefined_root, const std::wstring& key_path, 55 SetRegValueWorkItem(HKEY predefined_root, const std::wstring& key_path,
56 const std::wstring& value_name, int64 value_data, 56 const std::wstring& value_name, int64 value_data,
57 bool overwrite); 57 bool overwrite, RegWow64ViewOption reg_wow64_option);
58 58
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 // Whether to overwrite the existing value under the target key. 69 // Whether to overwrite the existing value under the target key.
70 bool overwrite_; 70 bool overwrite_;
71 71
72 // Whether to force 32-bit or 64-bit view of the target key.
73 RegWow64ViewOption reg_wow64_option_;
74
72 // Type of data to store 75 // Type of data to store
73 DWORD type_; 76 DWORD type_;
74 std::vector<uint8> value_; 77 std::vector<uint8> value_;
75 DWORD previous_type_; 78 DWORD previous_type_;
76 std::vector<uint8> previous_value_; 79 std::vector<uint8> previous_value_;
77 80
78 SettingStatus status_; 81 SettingStatus status_;
79 }; 82 };
80 83
81 #endif // CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ 84 #endif // CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698