summaryrefslogtreecommitdiffstats
path: root/base/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/task.h')
-rw-r--r--base/task.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/base/task.h b/base/task.h
index 460c8c2..b95d748 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