| 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 #include <stdint.h> |
| 9 | 10 |
| 10 #include <list> | 11 #include <list> |
| 11 #include <string> | 12 #include <string> |
| 12 #include <vector> | 13 #include <vector> |
| 13 | 14 |
| 14 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
| 15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 16 #include "chrome/installer/util/work_item.h" | 17 #include "chrome/installer/util/work_item.h" |
| 17 | 18 |
| 18 namespace base { | 19 namespace base { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 const std::wstring& value_name, | 111 const std::wstring& value_name, |
| 111 DWORD value_data, | 112 DWORD value_data, |
| 112 bool overwrite); | 113 bool overwrite); |
| 113 | 114 |
| 114 // Add a SetRegValueWorkItem that sets a registry value with REG_QWORD type | 115 // Add a SetRegValueWorkItem that sets a registry value with REG_QWORD type |
| 115 // at the key with specified path. | 116 // at the key with specified path. |
| 116 virtual WorkItem* AddSetRegValueWorkItem(HKEY predefined_root, | 117 virtual WorkItem* AddSetRegValueWorkItem(HKEY predefined_root, |
| 117 const std::wstring& key_path, | 118 const std::wstring& key_path, |
| 118 REGSAM wow64_access, | 119 REGSAM wow64_access, |
| 119 const std::wstring& value_name, | 120 const std::wstring& value_name, |
| 120 int64 value_data, | 121 int64_t value_data, |
| 121 bool overwrite); | 122 bool overwrite); |
| 122 | 123 |
| 123 // Add a SetRegValueWorkItem that sets a registry value based on the value | 124 // Add a SetRegValueWorkItem that sets a registry value based on the value |
| 124 // provided by |get_value_callback| given the existing value under | 125 // provided by |get_value_callback| given the existing value under |
| 125 // |key_path\value_name|. | 126 // |key_path\value_name|. |
| 126 virtual WorkItem* AddSetRegValueWorkItem( | 127 virtual WorkItem* AddSetRegValueWorkItem( |
| 127 HKEY predefined_root, | 128 HKEY predefined_root, |
| 128 const std::wstring& key_path, | 129 const std::wstring& key_path, |
| 129 REGSAM wow64_access, | 130 REGSAM wow64_access, |
| 130 const std::wstring& value_name, | 131 const std::wstring& value_name, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // Execute the WorkItems in the same order as they are added to the list. | 176 // Execute the WorkItems in the same order as they are added to the list. |
| 176 // If a WorkItem fails, the function will return failure but all other | 177 // If a WorkItem fails, the function will return failure but all other |
| 177 // WorkItems will still be executed. | 178 // WorkItems will still be executed. |
| 178 bool Do() override; | 179 bool Do() override; |
| 179 | 180 |
| 180 // No-op. | 181 // No-op. |
| 181 void Rollback() override; | 182 void Rollback() override; |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_ | 185 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_LIST_H_ |
| OLD | NEW |