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 #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 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 bool overwrite); | 106 bool overwrite); |
107 | 107 |
108 // Add a SetRegValueWorkItem that sets a registry value with REG_QWORD type | 108 // Add a SetRegValueWorkItem that sets a registry value with REG_QWORD type |
109 // at the key with specified path. | 109 // at the key with specified path. |
110 virtual WorkItem* AddSetRegValueWorkItem(HKEY predefined_root, | 110 virtual WorkItem* AddSetRegValueWorkItem(HKEY predefined_root, |
111 const std::wstring& key_path, | 111 const std::wstring& key_path, |
112 const std::wstring& value_name, | 112 const std::wstring& value_name, |
113 int64 value_data, | 113 int64 value_data, |
114 bool overwrite); | 114 bool overwrite); |
115 | 115 |
116 // Add an "optional" boolean registry value, specified by value_data. | |
gab
2012/08/28 16:08:19
Remove quotes around "optional"
grt (UTC plus 2)
2012/08/28 19:35:40
i think this function is too special-purpose to be
huangs
2012/08/29 17:02:54
Moved to app_command.cc as local helper.
| |
117 // In the registry, a non-zero value is "true", and a missing or zero value | |
118 // is "false". If value_data == true, add a SetRegValueWorkItem that sets | |
119 // registry value of 1 with REG_DWORD type. Otherwise add a | |
120 // DeleteRegValueWorkItem that deletes the registry value. | |
121 virtual WorkItem* AddSetOptionalBoolRegValueWorkItem( | |
gab
2012/08/28 16:08:19
I believe all other methods in this file are teste
huangs
2012/08/29 17:02:54
No longer need to test!
| |
122 HKEY predefined_root, const std::wstring& key_path, | |
gab
2012/08/28 16:08:19
Use string16
huangs
2012/08/29 17:02:54
Now I no longer need to change this file. Should
| |
123 const std::wstring& value_name, bool value_data); | |
124 | |
116 // Add a SelfRegWorkItem that registers or unregisters a DLL at the | 125 // Add a SelfRegWorkItem that registers or unregisters a DLL at the |
117 // specified path. If user_level_registration is true, then alternate | 126 // specified path. If user_level_registration is true, then alternate |
118 // registration and unregistration entry point names will be used. | 127 // registration and unregistration entry point names will be used. |
119 virtual WorkItem* AddSelfRegWorkItem(const std::wstring& dll_path, | 128 virtual WorkItem* AddSelfRegWorkItem(const std::wstring& dll_path, |
120 bool do_register, | 129 bool do_register, |
121 bool user_level_registration); | 130 bool user_level_registration); |
122 | 131 |
123 protected: | 132 protected: |
124 friend class WorkItem; | 133 friend class WorkItem; |
125 | 134 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
158 // Execute the WorkItems in the same order as they are added to the list. | 167 // 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 | 168 // If a WorkItem fails, the function will return failure but all other |
160 // WorkItems will still be executed. | 169 // WorkItems will still be executed. |
161 virtual bool Do(); | 170 virtual bool Do(); |
162 | 171 |
163 // Just does a NOTREACHED. | 172 // Just does a NOTREACHED. |
164 virtual void Rollback(); | 173 virtual void Rollback(); |
165 }; | 174 }; |
166 | 175 |
167 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_ | 176 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_ |
OLD | NEW |