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

Side by Side Diff: chrome/installer/util/work_item_list.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, 3 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 22 matching lines...) Expand all
33 virtual void Rollback(); 33 virtual void Rollback();
34 34
35 // Add a WorkItem to the list. 35 // Add a WorkItem to the list.
36 // A WorkItem can only be added to the list before the list's DO() is called. 36 // A WorkItem can only be added to the list before the list's DO() is called.
37 // Once a WorkItem is added to the list. The list owns the WorkItem. 37 // Once a WorkItem is added to the list. The list owns the WorkItem.
38 virtual void AddWorkItem(WorkItem* work_item); 38 virtual void AddWorkItem(WorkItem* work_item);
39 39
40 // Add a CopyRegKeyWorkItem that recursively copies a given registry key. 40 // Add a CopyRegKeyWorkItem that recursively copies a given registry key.
41 virtual WorkItem* AddCopyRegKeyWorkItem(HKEY predefined_root, 41 virtual WorkItem* AddCopyRegKeyWorkItem(HKEY predefined_root,
42 const std::wstring& source_key_path, 42 const std::wstring& source_key_path,
43 const std::wstring& dest_key_path); 43 const std::wstring& dest_key_path,
44 CopyOverWriteOption overwrite_option);
44 45
45 // Add a CopyTreeWorkItem to the list of work items. 46 // Add a CopyTreeWorkItem to the list of work items.
46 // See the NOTE in the documentation for the CopyTreeWorkItem class for 47 // See the NOTE in the documentation for the CopyTreeWorkItem class for
47 // special considerations regarding |temp_dir|. 48 // special considerations regarding |temp_dir|.
48 virtual WorkItem* AddCopyTreeWorkItem( 49 virtual WorkItem* AddCopyTreeWorkItem(
49 const std::wstring& source_path, 50 const std::wstring& source_path,
50 const std::wstring& dest_path, 51 const std::wstring& dest_path,
51 const std::wstring& temp_dir, 52 const std::wstring& temp_dir,
52 CopyOverWriteOption overwrite_option, 53 CopyOverWriteOption overwrite_option,
53 const std::wstring& alternative_path = L""); 54 const std::wstring& alternative_path = L"");
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // Execute the WorkItems in the same order as they are added to the list. 159 // Execute the WorkItems in the same order as they are added to the list.
159 // If a WorkItem fails, the function will return failure but all other 160 // If a WorkItem fails, the function will return failure but all other
160 // WorkItems will still be executed. 161 // WorkItems will still be executed.
161 virtual bool Do(); 162 virtual bool Do();
162 163
163 // Just does a NOTREACHED. 164 // Just does a NOTREACHED.
164 virtual void Rollback(); 165 virtual void Rollback();
165 }; 166 };
166 167
167 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_ 168 #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