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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 #include <stdint.h>
9 10
10 #include <string> 11 #include <string>
11 #include <vector> 12 #include <vector>
12 13
13 #include "base/callback.h" 14 #include "base/callback.h"
14 #include "chrome/installer/util/work_item.h" 15 #include "chrome/installer/util/work_item.h"
15 16
16 // A WorkItem subclass that sets a registry value with REG_SZ, REG_DWORD, or 17 // A WorkItem subclass that sets a registry value with REG_SZ, REG_DWORD, or
17 // REG_QWORD type at the specified path. The value is only set if the target key 18 // REG_QWORD type at the specified path. The value is only set if the target key
18 // exists. 19 // exists.
(...skipping 10 matching lines...) Expand all
29 const std::wstring& key_path, 30 const std::wstring& key_path,
30 REGSAM wow64_access, 31 REGSAM wow64_access,
31 const std::wstring& value_name, 32 const std::wstring& value_name,
32 DWORD value_data, 33 DWORD value_data,
33 bool overwrite); 34 bool overwrite);
34 35
35 SetRegValueWorkItem(HKEY predefined_root, 36 SetRegValueWorkItem(HKEY predefined_root,
36 const std::wstring& key_path, 37 const std::wstring& key_path,
37 REGSAM wow64_access, 38 REGSAM wow64_access,
38 const std::wstring& value_name, 39 const std::wstring& value_name,
39 int64 value_data, 40 int64_t value_data,
40 bool overwrite); 41 bool overwrite);
41 42
42 // Implies |overwrite_| and TYPE_SZ for now. 43 // Implies |overwrite_| and TYPE_SZ for now.
43 SetRegValueWorkItem(HKEY predefined_root, 44 SetRegValueWorkItem(HKEY predefined_root,
44 const std::wstring& key_path, 45 const std::wstring& key_path,
45 REGSAM wow64_access, 46 REGSAM wow64_access,
46 const std::wstring& value_name, 47 const std::wstring& value_name,
47 const GetValueFromExistingCallback& get_value_callback); 48 const GetValueFromExistingCallback& get_value_callback);
48 49
49 ~SetRegValueWorkItem() override; 50 ~SetRegValueWorkItem() override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const GetValueFromExistingCallback get_value_callback_; 85 const GetValueFromExistingCallback get_value_callback_;
85 86
86 // Whether to overwrite the existing value under the target key. 87 // Whether to overwrite the existing value under the target key.
87 bool overwrite_; 88 bool overwrite_;
88 89
89 // Whether to force 32-bit or 64-bit view of the target key. 90 // Whether to force 32-bit or 64-bit view of the target key.
90 REGSAM wow64_access_; 91 REGSAM wow64_access_;
91 92
92 // Type of data to store 93 // Type of data to store
93 DWORD type_; 94 DWORD type_;
94 std::vector<uint8> value_; 95 std::vector<uint8_t> value_;
95 DWORD previous_type_; 96 DWORD previous_type_;
96 std::vector<uint8> previous_value_; 97 std::vector<uint8_t> previous_value_;
97 98
98 SettingStatus status_; 99 SettingStatus status_;
99 }; 100 };
100 101
101 #endif // CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__ 102 #endif // CHROME_INSTALLER_UTIL_SET_REG_VALUE_WORK_ITEM_H__
OLDNEW
« no previous file with comments | « chrome/installer/util/self_cleaning_temp_dir_unittest.cc ('k') | chrome/installer/util/set_reg_value_work_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698