Chromium Code Reviews| Index: chrome/installer/util/work_item_list.h |
| diff --git a/chrome/installer/util/work_item_list.h b/chrome/installer/util/work_item_list.h |
| index 5f50fe45b43fa060912709633863adc016b9042e..57426885eb4d6a60967bdcc21a61b1a66dab95e9 100644 |
| --- a/chrome/installer/util/work_item_list.h |
| +++ b/chrome/installer/util/work_item_list.h |
| @@ -11,6 +11,7 @@ |
| #include <string> |
| #include <vector> |
| +#include "base/callback.h" |
|
robertshield
2012/08/30 17:52:43
is it possible to use base/callback_forward.h here
grt (UTC plus 2)
2012/08/30 18:21:50
Yes! All but callback_work_item.h.
|
| #include "base/memory/scoped_ptr.h" |
| #include "chrome/installer/util/work_item.h" |
| @@ -36,6 +37,10 @@ class WorkItemList : public WorkItem { |
| // Once a WorkItem is added to the list. The list owns the WorkItem. |
| virtual void AddWorkItem(WorkItem* work_item); |
| + // Add a CallbackWorkItem that invokes a callback. |
| + virtual WorkItem* AddCallbackWorkItem( |
| + base::Callback<bool(const CallbackWorkItem&)> callback); |
| + |
| // Add a CopyRegKeyWorkItem that recursively copies a given registry key. |
| virtual WorkItem* AddCopyRegKeyWorkItem(HKEY predefined_root, |
| const std::wstring& source_key_path, |