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

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

Issue 7976045: Fix in-use updates for Chrome Frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sanity check before dcommit Created 9 years, 2 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual ~Condition() {} 56 virtual ~Condition() {}
57 virtual bool ShouldRun() const = 0; 57 virtual bool ShouldRun() const = 0;
58 }; 58 };
59 59
60 virtual ~WorkItem(); 60 virtual ~WorkItem();
61 61
62 // Create a CopyRegKeyWorkItem that recursively copies a given registry key. 62 // Create a CopyRegKeyWorkItem that recursively copies a given registry key.
63 static CopyRegKeyWorkItem* CreateCopyRegKeyWorkItem( 63 static CopyRegKeyWorkItem* CreateCopyRegKeyWorkItem(
64 HKEY predefined_root, 64 HKEY predefined_root,
65 const std::wstring& source_key_path, 65 const std::wstring& source_key_path,
66 const std::wstring& dest_key_path); 66 const std::wstring& dest_key_path,
67 CopyOverWriteOption overwrite_option);
67 68
68 // Create a CopyTreeWorkItem that recursively copies a file system hierarchy 69 // Create a CopyTreeWorkItem that recursively copies a file system hierarchy
69 // from source path to destination path. 70 // from source path to destination path.
70 // * If overwrite_option is ALWAYS, the created CopyTreeWorkItem always 71 // * If overwrite_option is ALWAYS, the created CopyTreeWorkItem always
71 // overwrites files. 72 // overwrites files.
72 // * If overwrite_option is NEW_NAME_IF_IN_USE, file is copied with an 73 // * If overwrite_option is NEW_NAME_IF_IN_USE, file is copied with an
73 // alternate name specified by alternative_path. 74 // alternate name specified by alternative_path.
74 static CopyTreeWorkItem* CreateCopyTreeWorkItem( 75 static CopyTreeWorkItem* CreateCopyTreeWorkItem(
75 const FilePath& source_path, 76 const FilePath& source_path,
76 const FilePath& dest_path, 77 const FilePath& dest_path,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 WorkItem(); 190 WorkItem();
190 191
191 // Specifies whether this work item my fail to complete and yet still 192 // Specifies whether this work item my fail to complete and yet still
192 // return true from Do(). 193 // return true from Do().
193 bool ignore_failure_; 194 bool ignore_failure_;
194 195
195 std::string log_message_; 196 std::string log_message_;
196 }; 197 };
197 198
198 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_ 199 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/copy_reg_key_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