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

Side by Side Diff: chrome/installer/util/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, 11 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
« no previous file with comments | « chrome/installer/util/wmi.cc ('k') | chrome/installer/util/work_item.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Base class for managing an action of a sequence of actions to be carried 5 // Base class for managing an action of a sequence of actions to be carried
6 // out during install/update/uninstall. Supports rollback of actions if this 6 // out during install/update/uninstall. Supports rollback of actions if this
7 // process fails. 7 // process fails.
8 8
9 #ifndef CHROME_INSTALLER_UTIL_WORK_ITEM_H_ 9 #ifndef CHROME_INSTALLER_UTIL_WORK_ITEM_H_
10 #define CHROME_INSTALLER_UTIL_WORK_ITEM_H_ 10 #define CHROME_INSTALLER_UTIL_WORK_ITEM_H_
11 11
12 #include <windows.h> 12 #include <windows.h>
13 #include <stdint.h>
13 14
14 #include <string> 15 #include <string>
15 #include <vector> 16 #include <vector>
16 17
17 #include "base/basictypes.h"
18 #include "base/callback_forward.h" 18 #include "base/callback_forward.h"
19 19
20 class CallbackWorkItem; 20 class CallbackWorkItem;
21 class CopyTreeWorkItem; 21 class CopyTreeWorkItem;
22 class CreateDirWorkItem; 22 class CreateDirWorkItem;
23 class CreateRegKeyWorkItem; 23 class CreateRegKeyWorkItem;
24 class DeleteTreeWorkItem; 24 class DeleteTreeWorkItem;
25 class DeleteRegKeyWorkItem; 25 class DeleteRegKeyWorkItem;
26 class DeleteRegValueWorkItem; 26 class DeleteRegValueWorkItem;
27 class MoveTreeWorkItem; 27 class MoveTreeWorkItem;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 DWORD value_data, 154 DWORD value_data,
155 bool overwrite); 155 bool overwrite);
156 156
157 // Create a SetRegValueWorkItem that sets a registry value with REG_QWORD type 157 // Create a SetRegValueWorkItem that sets a registry value with REG_QWORD type
158 // at the key with specified path. 158 // at the key with specified path.
159 static SetRegValueWorkItem* CreateSetRegValueWorkItem( 159 static SetRegValueWorkItem* CreateSetRegValueWorkItem(
160 HKEY predefined_root, 160 HKEY predefined_root,
161 const std::wstring& key_path, 161 const std::wstring& key_path,
162 REGSAM wow64_access, 162 REGSAM wow64_access,
163 const std::wstring& value_name, 163 const std::wstring& value_name,
164 int64 value_data, 164 int64_t value_data,
165 bool overwrite); 165 bool overwrite);
166 166
167 // Create a SetRegValueWorkItem that sets a registry value based on the value 167 // Create a SetRegValueWorkItem that sets a registry value based on the value
168 // provided by |get_value_callback| given the existing value under 168 // provided by |get_value_callback| given the existing value under
169 // |key_path\value_name|. 169 // |key_path\value_name|.
170 static SetRegValueWorkItem* CreateSetRegValueWorkItem( 170 static SetRegValueWorkItem* CreateSetRegValueWorkItem(
171 HKEY predefined_root, 171 HKEY predefined_root,
172 const std::wstring& key_path, 172 const std::wstring& key_path,
173 REGSAM wow64_access, 173 REGSAM wow64_access,
174 const std::wstring& value_name, 174 const std::wstring& value_name,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 WorkItem(); 230 WorkItem();
231 231
232 // Specifies whether this work item my fail to complete and yet still 232 // Specifies whether this work item my fail to complete and yet still
233 // return true from Do(). 233 // return true from Do().
234 bool ignore_failure_; 234 bool ignore_failure_;
235 235
236 std::string log_message_; 236 std::string log_message_;
237 }; 237 };
238 238
239 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_ 239 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/wmi.cc ('k') | chrome/installer/util/work_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698