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

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

Issue 6538025: Temp dir cleanup:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 66
67 // Add a DeleteTreeWorkItem that recursively deletes a file system 67 // Add a DeleteTreeWorkItem that recursively deletes a file system
68 // 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
69 // by key_path. 69 // by key_path.
70 virtual WorkItem* AddDeleteTreeWorkItem( 70 virtual WorkItem* AddDeleteTreeWorkItem(
71 const FilePath& root_path, 71 const FilePath& root_path,
72 const FilePath& temp_path,
72 const std::vector<FilePath>& key_paths); 73 const std::vector<FilePath>& key_paths);
73 74
74 // Same as above but without support for key files. 75 // Same as above but without support for key files.
75 virtual WorkItem* AddDeleteTreeWorkItem(const FilePath& root_path); 76 virtual WorkItem* AddDeleteTreeWorkItem(const FilePath& root_path,
77 const FilePath& temp_path);
76 78
77 // Add a MoveTreeWorkItem to the list of work items. 79 // Add a MoveTreeWorkItem to the list of work items.
78 virtual WorkItem* AddMoveTreeWorkItem(const std::wstring& source_path, 80 virtual WorkItem* AddMoveTreeWorkItem(const std::wstring& source_path,
79 const std::wstring& dest_path, 81 const std::wstring& dest_path,
80 const std::wstring& temp_dir); 82 const std::wstring& temp_dir);
81 83
82 // Add a SetRegValueWorkItem that sets a registry value with REG_SZ type 84 // Add a SetRegValueWorkItem that sets a registry value with REG_SZ type
83 // at the key with specified path. 85 // at the key with specified path.
84 virtual WorkItem* AddSetRegValueWorkItem(HKEY predefined_root, 86 virtual WorkItem* AddSetRegValueWorkItem(HKEY predefined_root,
85 const std::wstring& key_path, 87 const std::wstring& key_path,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // Execute the WorkItems in the same order as they are added to the list. 150 // Execute the WorkItems in the same order as they are added to the list.
149 // If a WorkItem fails, the function will return failure but all other 151 // If a WorkItem fails, the function will return failure but all other
150 // WorkItems will still be executed. 152 // WorkItems will still be executed.
151 virtual bool Do(); 153 virtual bool Do();
152 154
153 // Just does a NOTREACHED. 155 // Just does a NOTREACHED.
154 virtual void Rollback(); 156 virtual void Rollback();
155 }; 157 };
156 158
157 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_ 159 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698