| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Base class for managing an action of a sequence of actions to be carried | 5 // Base class for managing an action of a sequence of actions to be carried |
| 6 // out during install/update/uninstall. Supports rollback of actions if this | 6 // out during install/update/uninstall. Supports rollback of actions if this |
| 7 // process fails. | 7 // process fails. |
| 8 | 8 |
| 9 #ifndef CHROME_INSTALLER_UTIL_WORK_ITEM_H_ | 9 #ifndef CHROME_INSTALLER_UTIL_WORK_ITEM_H_ |
| 10 #define CHROME_INSTALLER_UTIL_WORK_ITEM_H_ | 10 #define CHROME_INSTALLER_UTIL_WORK_ITEM_H_ |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 void set_log_message(const std::string& log_message) { | 156 void set_log_message(const std::string& log_message) { |
| 157 log_message_ = log_message; | 157 log_message_ = log_message; |
| 158 } | 158 } |
| 159 | 159 |
| 160 // Retrieves the optional log message. The retrieved string may be empty. | 160 // Retrieves the optional log message. The retrieved string may be empty. |
| 161 std::string log_message() { return log_message_; } | 161 std::string log_message() { return log_message_; } |
| 162 | 162 |
| 163 protected: | 163 protected: |
| 164 WorkItem(); | 164 WorkItem(); |
| 165 | 165 |
| 166 // Specifies whether this work item my fail to complete and yet still |
| 167 // return true from Do(). |
| 166 bool ignore_failure_; | 168 bool ignore_failure_; |
| 169 |
| 167 std::string log_message_; | 170 std::string log_message_; |
| 168 }; | 171 }; |
| 169 | 172 |
| 170 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_ | 173 #endif // CHROME_INSTALLER_UTIL_WORK_ITEM_H_ |
| OLD | NEW |