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

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

Issue 6377011: wstring: use a few more FilePaths to remove Hack functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix2 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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 virtual ~WorkItem(); 53 virtual ~WorkItem();
54 54
55 // Create a CopyTreeWorkItem that recursively copies a file system hierarchy 55 // Create a CopyTreeWorkItem that recursively copies a file system hierarchy
56 // from source path to destination path. 56 // from source path to destination path.
57 // * If overwrite_option is ALWAYS, the created CopyTreeWorkItem always 57 // * If overwrite_option is ALWAYS, the created CopyTreeWorkItem always
58 // overwrites files. 58 // overwrites files.
59 // * If overwrite_option is NEW_NAME_IF_IN_USE, file is copied with an 59 // * If overwrite_option is NEW_NAME_IF_IN_USE, file is copied with an
60 // alternate name specified by alternative_path. 60 // alternate name specified by alternative_path.
61 static CopyTreeWorkItem* CreateCopyTreeWorkItem( 61 static CopyTreeWorkItem* CreateCopyTreeWorkItem(
62 const std::wstring& source_path, 62 const FilePath& source_path,
63 const std::wstring& dest_path, 63 const FilePath& dest_path,
64 const std::wstring& temp_dir, 64 const FilePath& temp_dir,
65 CopyOverWriteOption overwrite_option, 65 CopyOverWriteOption overwrite_option,
66 const std::wstring& alternative_path = L""); 66 const FilePath& alternative_path);
67 67
68 // Create a CreateDirWorkItem that creates a directory at the given path. 68 // Create a CreateDirWorkItem that creates a directory at the given path.
69 static CreateDirWorkItem* CreateCreateDirWorkItem(const FilePath& path); 69 static CreateDirWorkItem* CreateCreateDirWorkItem(const FilePath& path);
70 70
71 // Create a CreateRegKeyWorkItem that creates a registry key at the given 71 // Create a CreateRegKeyWorkItem that creates a registry key at the given
72 // path. 72 // path.
73 static CreateRegKeyWorkItem* CreateCreateRegKeyWorkItem( 73 static CreateRegKeyWorkItem* CreateCreateRegKeyWorkItem(
74 HKEY predefined_root, const std::wstring& path); 74 HKEY predefined_root, const std::wstring& path);
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
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 WorkItem(); 173 WorkItem();
174 174
175 // 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
176 // return true from Do(). 176 // return true from Do().
177 bool ignore_failure_; 177 bool ignore_failure_;
178 178
179 std::string log_message_; 179 std::string log_message_;
180 }; 180 };
181 181
182 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_ 182 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/copy_tree_work_item_unittest.cc ('k') | chrome/installer/util/work_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698