OLD | NEW |
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 #include "chrome/installer/util/work_item.h" | 5 #include "chrome/installer/util/work_item.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "chrome/installer/util/callback_work_item.h" | 9 #include "chrome/installer/util/callback_work_item.h" |
10 #include "chrome/installer/util/conditional_work_item_list.h" | 10 #include "chrome/installer/util/conditional_work_item_list.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 int64 value_data, | 124 int64 value_data, |
125 bool overwrite) { | 125 bool overwrite) { |
126 return new SetRegValueWorkItem(predefined_root, | 126 return new SetRegValueWorkItem(predefined_root, |
127 key_path, | 127 key_path, |
128 wow64_access, | 128 wow64_access, |
129 value_name, | 129 value_name, |
130 value_data, | 130 value_data, |
131 overwrite); | 131 overwrite); |
132 } | 132 } |
133 | 133 |
| 134 SetRegValueWorkItem* WorkItem::CreateSetRegValueWorkItem( |
| 135 HKEY predefined_root, |
| 136 const std::wstring& key_path, |
| 137 REGSAM wow64_access, |
| 138 const std::wstring& value_name, |
| 139 const GetValueFromExistingCallback& get_value_callback) { |
| 140 return new SetRegValueWorkItem(predefined_root, |
| 141 key_path, |
| 142 wow64_access, |
| 143 value_name, |
| 144 get_value_callback); |
| 145 } |
| 146 |
134 SelfRegWorkItem* WorkItem::CreateSelfRegWorkItem(const std::wstring& dll_path, | 147 SelfRegWorkItem* WorkItem::CreateSelfRegWorkItem(const std::wstring& dll_path, |
135 bool do_register, | 148 bool do_register, |
136 bool user_level_registration) { | 149 bool user_level_registration) { |
137 return new SelfRegWorkItem(dll_path, do_register, user_level_registration); | 150 return new SelfRegWorkItem(dll_path, do_register, user_level_registration); |
138 } | 151 } |
139 | 152 |
140 WorkItemList* WorkItem::CreateWorkItemList() { | 153 WorkItemList* WorkItem::CreateWorkItemList() { |
141 return new WorkItemList(); | 154 return new WorkItemList(); |
142 } | 155 } |
143 | 156 |
144 // static | 157 // static |
145 WorkItemList* WorkItem::CreateNoRollbackWorkItemList() { | 158 WorkItemList* WorkItem::CreateNoRollbackWorkItemList() { |
146 return new NoRollbackWorkItemList(); | 159 return new NoRollbackWorkItemList(); |
147 } | 160 } |
148 | 161 |
149 WorkItemList* WorkItem::CreateConditionalWorkItemList(Condition* condition) { | 162 WorkItemList* WorkItem::CreateConditionalWorkItemList(Condition* condition) { |
150 return new ConditionalWorkItemList(condition); | 163 return new ConditionalWorkItemList(condition); |
151 } | 164 } |
OLD | NEW |