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

Unified Diff: base/task.h

Issue 7210053: Implementation of PostTaskAndReply() in MessageLoopProxy and BrowserThread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add supression Created 9 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: 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

Powered by Google App Engine
This is Rietveld 408576698