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

Unified Diff: chrome/installer/util/work_item.h

Issue 10916018: Force COM machinery to notice that the path to the DelegateExecute verb handler has changed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/installer/util/work_item.h
diff --git a/chrome/installer/util/work_item.h b/chrome/installer/util/work_item.h
index b8b31fdea58869dfd53dd4ae866322323ea55f7b..74955db214ba20819db32424fe7f08bbed4ab413 100644
--- a/chrome/installer/util/work_item.h
+++ b/chrome/installer/util/work_item.h
@@ -15,7 +15,9 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/callback.h"
+class CallbackWorkItem;
class CopyRegKeyWorkItem;
class CopyTreeWorkItem;
class CreateDirWorkItem;
@@ -58,6 +60,10 @@ class WorkItem {
virtual ~WorkItem();
+ // Create a CallbackWorkItem that invokes a callback.
+ static CallbackWorkItem* CreateCallbackWorkItem(
+ base::Callback<bool(const CallbackWorkItem&)> callback);
+
// Create a CopyRegKeyWorkItem that recursively copies a given registry key.
static CopyRegKeyWorkItem* CreateCopyRegKeyWorkItem(
HKEY predefined_root,
@@ -176,6 +182,11 @@ class WorkItem {
ignore_failure_ = ignore_failure;
}
+ // Returns true if this WorkItem should ignore failures.
+ bool ignore_failure() const {
+ return ignore_failure_;
+ }
+
// Sets an optional log message that a work item may use to print additional
// instance-specific information.
void set_log_message(const std::string& log_message) {
@@ -183,7 +194,7 @@ class WorkItem {
}
// Retrieves the optional log message. The retrieved string may be empty.
- std::string log_message() { return log_message_; }
+ const std::string& log_message() const { return log_message_; }
protected:
WorkItem();

Powered by Google App Engine
This is Rietveld 408576698