Index: base/task.h |
diff --git a/base/task.h b/base/task.h |
index 460c8c2e5c9a4dca9318da1c45db848baa7b8007..b95d74889a5ecb1dd7035a6370965c62410f1a56 100644 |
--- a/base/task.h |
+++ b/base/task.h |
@@ -217,6 +217,17 @@ class ReleaseTask : public CancelableTask { |
const T* obj_; |
}; |
+// Equivalents for use by base::Bind(). |
+template<typename T> |
+void DeletePointer(T* obj) { |
+ delete obj; |
+} |
+ |
+template<typename T> |
+void ReleasePointer(T* obj) { |
+ obj->Release(); |
+} |
+ |
// RunnableMethodTraits -------------------------------------------------------- |
// |
// This traits-class is used by RunnableMethod to manage the lifetime of the |