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

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

Issue 282363003: Add WOW64 support to the installer registry work items (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Created 6 years, 7 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
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 #include "chrome/installer/util/work_item.h" 5 #include "chrome/installer/util/work_item.h"
6 6
7 #include "chrome/installer/util/callback_work_item.h" 7 #include "chrome/installer/util/callback_work_item.h"
8 #include "chrome/installer/util/conditional_work_item_list.h" 8 #include "chrome/installer/util/conditional_work_item_list.h"
9 #include "chrome/installer/util/copy_reg_key_work_item.h" 9 #include "chrome/installer/util/copy_reg_key_work_item.h"
10 #include "chrome/installer/util/copy_tree_work_item.h" 10 #include "chrome/installer/util/copy_tree_work_item.h"
(...skipping 15 matching lines...) Expand all
26 26
27 CallbackWorkItem* WorkItem::CreateCallbackWorkItem( 27 CallbackWorkItem* WorkItem::CreateCallbackWorkItem(
28 base::Callback<bool(const CallbackWorkItem&)> callback) { 28 base::Callback<bool(const CallbackWorkItem&)> callback) {
29 return new CallbackWorkItem(callback); 29 return new CallbackWorkItem(callback);
30 } 30 }
31 31
32 CopyRegKeyWorkItem* WorkItem::CreateCopyRegKeyWorkItem( 32 CopyRegKeyWorkItem* WorkItem::CreateCopyRegKeyWorkItem(
33 HKEY predefined_root, 33 HKEY predefined_root,
34 const std::wstring& source_key_path, 34 const std::wstring& source_key_path,
35 const std::wstring& dest_key_path, 35 const std::wstring& dest_key_path,
36 CopyOverWriteOption overwrite_option) { 36 CopyOverWriteOption overwrite_option,
37 RegWow64ViewOption reg_wow64_option) {
37 return new CopyRegKeyWorkItem(predefined_root, source_key_path, 38 return new CopyRegKeyWorkItem(predefined_root, source_key_path,
38 dest_key_path, overwrite_option); 39 dest_key_path, overwrite_option,
40 reg_wow64_option);
39 } 41 }
40 42
41 CopyTreeWorkItem* WorkItem::CreateCopyTreeWorkItem( 43 CopyTreeWorkItem* WorkItem::CreateCopyTreeWorkItem(
42 const base::FilePath& source_path, 44 const base::FilePath& source_path,
43 const base::FilePath& dest_path, 45 const base::FilePath& dest_path,
44 const base::FilePath& temp_dir, 46 const base::FilePath& temp_dir,
45 CopyOverWriteOption overwrite_option, 47 CopyOverWriteOption overwrite_option,
46 const base::FilePath& alternative_path) { 48 const base::FilePath& alternative_path) {
47 return new CopyTreeWorkItem(source_path, dest_path, temp_dir, 49 return new CopyTreeWorkItem(source_path, dest_path, temp_dir,
48 overwrite_option, alternative_path); 50 overwrite_option, alternative_path);
49 } 51 }
50 52
51 CreateDirWorkItem* WorkItem::CreateCreateDirWorkItem( 53 CreateDirWorkItem* WorkItem::CreateCreateDirWorkItem(
52 const base::FilePath& path) { 54 const base::FilePath& path) {
53 return new CreateDirWorkItem(path); 55 return new CreateDirWorkItem(path);
54 } 56 }
55 57
56 CreateRegKeyWorkItem* WorkItem::CreateCreateRegKeyWorkItem( 58 CreateRegKeyWorkItem* WorkItem::CreateCreateRegKeyWorkItem(
57 HKEY predefined_root, const std::wstring& path) { 59 HKEY predefined_root, const std::wstring& path,
58 return new CreateRegKeyWorkItem(predefined_root, path); 60 RegWow64ViewOption reg_wow64_option) {
61 return new CreateRegKeyWorkItem(predefined_root, path, reg_wow64_option);
59 } 62 }
60 63
61 DeleteRegKeyWorkItem* WorkItem::CreateDeleteRegKeyWorkItem( 64 DeleteRegKeyWorkItem* WorkItem::CreateDeleteRegKeyWorkItem(
62 HKEY predefined_root, const std::wstring& path) { 65 HKEY predefined_root,
63 return new DeleteRegKeyWorkItem(predefined_root, path); 66 const std::wstring& path,
67 RegWow64ViewOption reg_wow64_option) {
68 return new DeleteRegKeyWorkItem(predefined_root, path, reg_wow64_option);
64 } 69 }
65 70
66 DeleteRegValueWorkItem* WorkItem::CreateDeleteRegValueWorkItem( 71 DeleteRegValueWorkItem* WorkItem::CreateDeleteRegValueWorkItem(
67 HKEY predefined_root, 72 HKEY predefined_root,
68 const std::wstring& key_path, 73 const std::wstring& key_path,
69 const std::wstring& value_name) { 74 const std::wstring& value_name,
70 return new DeleteRegValueWorkItem(predefined_root, key_path, value_name); 75 RegWow64ViewOption reg_wow64_option) {
76 return new DeleteRegValueWorkItem(predefined_root,
77 key_path,
78 value_name,
79 reg_wow64_option);
71 } 80 }
72 81
73 DeleteTreeWorkItem* WorkItem::CreateDeleteTreeWorkItem( 82 DeleteTreeWorkItem* WorkItem::CreateDeleteTreeWorkItem(
74 const base::FilePath& root_path, 83 const base::FilePath& root_path,
75 const base::FilePath& temp_path, 84 const base::FilePath& temp_path,
76 const std::vector<base::FilePath>& key_paths) { 85 const std::vector<base::FilePath>& key_paths) {
77 return new DeleteTreeWorkItem(root_path, temp_path, key_paths); 86 return new DeleteTreeWorkItem(root_path, temp_path, key_paths);
78 } 87 }
79 88
80 MoveTreeWorkItem* WorkItem::CreateMoveTreeWorkItem( 89 MoveTreeWorkItem* WorkItem::CreateMoveTreeWorkItem(
81 const base::FilePath& source_path, 90 const base::FilePath& source_path,
82 const base::FilePath& dest_path, 91 const base::FilePath& dest_path,
83 const base::FilePath& temp_dir, 92 const base::FilePath& temp_dir,
84 MoveTreeOption duplicate_option) { 93 MoveTreeOption duplicate_option) {
85 return new MoveTreeWorkItem(source_path, 94 return new MoveTreeWorkItem(source_path,
86 dest_path, 95 dest_path,
87 temp_dir, 96 temp_dir,
88 duplicate_option); 97 duplicate_option);
89 } 98 }
90 99
91 SetRegValueWorkItem* WorkItem::CreateSetRegValueWorkItem( 100 SetRegValueWorkItem* WorkItem::CreateSetRegValueWorkItem(
92 HKEY predefined_root, 101 HKEY predefined_root,
93 const std::wstring& key_path, 102 const std::wstring& key_path,
94 const std::wstring& value_name, 103 const std::wstring& value_name,
95 const std::wstring& value_data, 104 const std::wstring& value_data,
96 bool overwrite) { 105 bool overwrite,
106 RegWow64ViewOption reg_wow64_option) {
97 return new SetRegValueWorkItem(predefined_root, key_path, 107 return new SetRegValueWorkItem(predefined_root, key_path,
98 value_name, value_data, overwrite); 108 value_name, value_data, overwrite,
109 reg_wow64_option);
99 } 110 }
100 111
101 SetRegValueWorkItem* WorkItem::CreateSetRegValueWorkItem( 112 SetRegValueWorkItem* WorkItem::CreateSetRegValueWorkItem(
102 HKEY predefined_root, 113 HKEY predefined_root,
103 const std::wstring& key_path, 114 const std::wstring& key_path,
104 const std::wstring& value_name, 115 const std::wstring& value_name,
105 DWORD value_data, 116 DWORD value_data,
106 bool overwrite) { 117 bool overwrite,
118 RegWow64ViewOption reg_wow64_option) {
107 return new SetRegValueWorkItem(predefined_root, key_path, 119 return new SetRegValueWorkItem(predefined_root, key_path,
108 value_name, value_data, overwrite); 120 value_name, value_data, overwrite,
121 reg_wow64_option);
109 } 122 }
110 123
111 SetRegValueWorkItem* WorkItem::CreateSetRegValueWorkItem( 124 SetRegValueWorkItem* WorkItem::CreateSetRegValueWorkItem(
112 HKEY predefined_root, 125 HKEY predefined_root,
113 const std::wstring& key_path, 126 const std::wstring& key_path,
114 const std::wstring& value_name, 127 const std::wstring& value_name,
115 int64 value_data, 128 int64 value_data,
116 bool overwrite) { 129 bool overwrite,
130 RegWow64ViewOption reg_wow64_option) {
117 return new SetRegValueWorkItem(predefined_root, key_path, 131 return new SetRegValueWorkItem(predefined_root, key_path,
118 value_name, value_data, overwrite); 132 value_name, value_data, overwrite,
133 reg_wow64_option);
119 } 134 }
120 135
121 SelfRegWorkItem* WorkItem::CreateSelfRegWorkItem(const std::wstring& dll_path, 136 SelfRegWorkItem* WorkItem::CreateSelfRegWorkItem(const std::wstring& dll_path,
122 bool do_register, 137 bool do_register,
123 bool user_level_registration) { 138 bool user_level_registration) {
124 return new SelfRegWorkItem(dll_path, do_register, user_level_registration); 139 return new SelfRegWorkItem(dll_path, do_register, user_level_registration);
125 } 140 }
126 141
127 WorkItemList* WorkItem::CreateWorkItemList() { 142 WorkItemList* WorkItem::CreateWorkItemList() {
128 return new WorkItemList(); 143 return new WorkItemList();
129 } 144 }
130 145
131 // static 146 // static
132 WorkItemList* WorkItem::CreateNoRollbackWorkItemList() { 147 WorkItemList* WorkItem::CreateNoRollbackWorkItemList() {
133 return new NoRollbackWorkItemList(); 148 return new NoRollbackWorkItemList();
134 } 149 }
135 150
136 WorkItemList* WorkItem::CreateConditionalWorkItemList(Condition* condition) { 151 WorkItemList* WorkItem::CreateConditionalWorkItemList(Condition* condition) {
137 return new ConditionalWorkItemList(condition); 152 return new ConditionalWorkItemList(condition);
138 } 153 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698