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

Side by Side Diff: chrome/installer/util/work_item_list.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/work_item.cc ('k') | chrome/installer/util/work_item_list.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 #ifndef CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_ 5 #ifndef CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_
6 #define CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_ 6 #define CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const std::wstring& path); 54 const std::wstring& path);
55 55
56 // Add a DeleteRegKeyWorkItem that deletes a registry key from the given 56 // Add a DeleteRegKeyWorkItem that deletes a registry key from the given
57 // path. 57 // path.
58 virtual WorkItem* AddDeleteRegKeyWorkItem(HKEY predefined_root, 58 virtual WorkItem* AddDeleteRegKeyWorkItem(HKEY predefined_root,
59 const std::wstring& path); 59 const std::wstring& path);
60 60
61 // Add a DeleteRegValueWorkItem that deletes registry value of type REG_SZ 61 // Add a DeleteRegValueWorkItem that deletes registry value of type REG_SZ
62 // or REG_DWORD. 62 // or REG_DWORD.
63 virtual WorkItem* AddDeleteRegValueWorkItem(HKEY predefined_root, 63 virtual WorkItem* AddDeleteRegValueWorkItem(HKEY predefined_root,
64 const std::wstring& key_path, 64 const std::wstring& key_path,
65 const std::wstring& value_name, 65 const std::wstring& value_name);
66 DWORD type);
67 66
68 // Add a DeleteTreeWorkItem that recursively deletes a file system 67 // Add a DeleteTreeWorkItem that recursively deletes a file system
69 // hierarchy at the given root path. A key file can be optionally specified 68 // hierarchy at the given root path. A key file can be optionally specified
70 // by key_path. 69 // by key_path.
71 virtual WorkItem* AddDeleteTreeWorkItem( 70 virtual WorkItem* AddDeleteTreeWorkItem(
72 const FilePath& root_path, 71 const FilePath& root_path,
73 const std::vector<FilePath>& key_paths); 72 const std::vector<FilePath>& key_paths);
74 73
75 // Same as above but without support for key files. 74 // Same as above but without support for key files.
76 virtual WorkItem* AddDeleteTreeWorkItem(const FilePath& root_path); 75 virtual WorkItem* AddDeleteTreeWorkItem(const FilePath& root_path);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // Execute the WorkItems in the same order as they are added to the list. 148 // Execute the WorkItems in the same order as they are added to the list.
150 // If a WorkItem fails, the function will return failure but all other 149 // If a WorkItem fails, the function will return failure but all other
151 // WorkItems will still be executed. 150 // WorkItems will still be executed.
152 virtual bool Do(); 151 virtual bool Do();
153 152
154 // Just does a NOTREACHED. 153 // Just does a NOTREACHED.
155 virtual void Rollback(); 154 virtual void Rollback();
156 }; 155 };
157 156
158 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_ 157 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/work_item.cc ('k') | chrome/installer/util/work_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698