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

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

Issue 6090006: Regkey functions return error code instead of bool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/installer/util/shell_util.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_
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Create a DeleteRegKeyWorkItem that deletes a registry key at the given 76 // Create a DeleteRegKeyWorkItem that deletes a registry key at the given
77 // path. 77 // path.
78 static DeleteRegKeyWorkItem* CreateDeleteRegKeyWorkItem( 78 static DeleteRegKeyWorkItem* CreateDeleteRegKeyWorkItem(
79 HKEY predefined_root, const std::wstring& path); 79 HKEY predefined_root, const std::wstring& path);
80 80
81 // Create a DeleteRegValueWorkItem that deletes a registry value 81 // Create a DeleteRegValueWorkItem that deletes a registry value
82 static DeleteRegValueWorkItem* CreateDeleteRegValueWorkItem( 82 static DeleteRegValueWorkItem* CreateDeleteRegValueWorkItem(
83 HKEY predefined_root, 83 HKEY predefined_root,
84 const std::wstring& key_path, 84 const std::wstring& key_path,
85 const std::wstring& value_name, 85 const std::wstring& value_name);
86 DWORD type);
87 86
88 // Create a DeleteTreeWorkItem that recursively deletes a file system 87 // Create a DeleteTreeWorkItem that recursively deletes a file system
89 // hierarchy at the given root path. A key file can be optionally specified 88 // hierarchy at the given root path. A key file can be optionally specified
90 // by key_path. 89 // by key_path.
91 static DeleteTreeWorkItem* CreateDeleteTreeWorkItem( 90 static DeleteTreeWorkItem* CreateDeleteTreeWorkItem(
92 const FilePath& root_path, const std::vector<FilePath>& key_paths); 91 const FilePath& root_path, const std::vector<FilePath>& key_paths);
93 92
94 // Create a MoveTreeWorkItem that recursively moves a file system hierarchy 93 // Create a MoveTreeWorkItem that recursively moves a file system hierarchy
95 // from source path to destination path. 94 // from source path to destination path.
96 static MoveTreeWorkItem* CreateMoveTreeWorkItem( 95 static MoveTreeWorkItem* CreateMoveTreeWorkItem(
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 WorkItem(); 173 WorkItem();
175 174
176 // Specifies whether this work item my fail to complete and yet still 175 // Specifies whether this work item my fail to complete and yet still
177 // return true from Do(). 176 // return true from Do().
178 bool ignore_failure_; 177 bool ignore_failure_;
179 178
180 std::string log_message_; 179 std::string log_message_;
181 }; 180 };
182 181
183 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_ 182 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/shell_util.cc ('k') | chrome/installer/util/work_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698