OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/installer/util/work_item.h" | 5 #include "chrome/installer/util/work_item.h" |
6 | 6 |
7 #include "chrome/installer/util/copy_tree_work_item.h" | 7 #include "chrome/installer/util/copy_tree_work_item.h" |
8 #include "chrome/installer/util/create_dir_work_item.h" | 8 #include "chrome/installer/util/create_dir_work_item.h" |
9 #include "chrome/installer/util/create_reg_key_work_item.h" | 9 #include "chrome/installer/util/create_reg_key_work_item.h" |
10 #include "chrome/installer/util/delete_tree_work_item.h" | 10 #include "chrome/installer/util/delete_tree_work_item.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 DeleteRegValueWorkItem* WorkItem::CreateDeleteRegValueWorkItem( | 42 DeleteRegValueWorkItem* WorkItem::CreateDeleteRegValueWorkItem( |
43 HKEY predefined_root, | 43 HKEY predefined_root, |
44 const std::wstring& key_path, | 44 const std::wstring& key_path, |
45 const std::wstring& value_name, | 45 const std::wstring& value_name, |
46 bool is_str_type) { | 46 bool is_str_type) { |
47 return new DeleteRegValueWorkItem(predefined_root, key_path, | 47 return new DeleteRegValueWorkItem(predefined_root, key_path, |
48 value_name, is_str_type); | 48 value_name, is_str_type); |
49 } | 49 } |
50 | 50 |
51 DeleteTreeWorkItem* WorkItem::CreateDeleteTreeWorkItem( | 51 DeleteTreeWorkItem* WorkItem::CreateDeleteTreeWorkItem( |
52 const std::wstring& root_path, const std::wstring& key_path) { | 52 const FilePath& root_path, const std::vector<FilePath>& key_paths) { |
53 return new DeleteTreeWorkItem(root_path, key_path); | 53 return new DeleteTreeWorkItem(root_path, key_paths); |
54 } | 54 } |
55 | 55 |
56 MoveTreeWorkItem* WorkItem::CreateMoveTreeWorkItem( | 56 MoveTreeWorkItem* WorkItem::CreateMoveTreeWorkItem( |
57 const std::wstring& source_path, | 57 const std::wstring& source_path, |
58 const std::wstring& dest_path, | 58 const std::wstring& dest_path, |
59 const std::wstring& temp_dir) { | 59 const std::wstring& temp_dir) { |
60 return new MoveTreeWorkItem(source_path, dest_path, temp_dir); | 60 return new MoveTreeWorkItem(source_path, dest_path, temp_dir); |
61 } | 61 } |
62 | 62 |
63 SetRegValueWorkItem* WorkItem::CreateSetRegValueWorkItem( | 63 SetRegValueWorkItem* WorkItem::CreateSetRegValueWorkItem( |
(...skipping 22 matching lines...) Expand all Loading... |
86 } | 86 } |
87 | 87 |
88 WorkItemList* WorkItem::CreateWorkItemList() { | 88 WorkItemList* WorkItem::CreateWorkItemList() { |
89 return new WorkItemList(); | 89 return new WorkItemList(); |
90 } | 90 } |
91 | 91 |
92 // static | 92 // static |
93 WorkItemList* WorkItem::CreateNoRollbackWorkItemList() { | 93 WorkItemList* WorkItem::CreateNoRollbackWorkItemList() { |
94 return new NoRollbackWorkItemList(); | 94 return new NoRollbackWorkItemList(); |
95 } | 95 } |
OLD | NEW |