Index: base/message_loop/message_loop.h |
diff --git a/base/message_loop/message_loop.h b/base/message_loop/message_loop.h |
index 1957b99d74648fc9f8abb1658e3ef59c25357838..7deb35332775f3c816f75f28982e14d2782f7945 100644 |
--- a/base/message_loop/message_loop.h |
+++ b/base/message_loop/message_loop.h |
@@ -205,10 +205,10 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate { |
// NOTE: These methods may be called on any thread. The Task will be invoked |
// on the thread that executes MessageLoop::Run(). |
void PostTask(const tracked_objects::Location& from_here, |
- const Closure& task); |
+ OnceClosure task); |
void PostDelayedTask(const tracked_objects::Location& from_here, |
- const Closure& task, |
+ OnceClosure task, |
TimeDelta delay); |
// A variant on PostTask that deletes the given object. This is useful |
@@ -410,7 +410,7 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate { |
debug::TaskAnnotator* task_annotator() { return &task_annotator_; } |
// Runs the specified PendingTask. |
- void RunTask(const PendingTask& pending_task); |
+ void RunTask(PendingTask pending_task); |
#if defined(OS_WIN) |
// TODO (stanisc): crbug.com/596190: Remove this after the signaling issue |