Index: base/message_loop.h |
diff --git a/base/message_loop.h b/base/message_loop.h |
index a5a94bc0314e8105cccfed852570ed761dc049cd..719de000b71f9f6fb09f66382d54b6595876dd64 100644 |
--- a/base/message_loop.h |
+++ b/base/message_loop.h |
@@ -15,6 +15,7 @@ |
#include "base/observer_list.h" |
#include "base/ref_counted.h" |
#include "base/task.h" |
+#include "base/prebind.h" |
#if defined(OS_WIN) |
// We need this to declare base::MessagePumpWin::Dispatcher, which we should |
@@ -127,12 +128,21 @@ class MessageLoop : public base::MessagePump::Delegate { |
// NOTE: These methods may be called on any thread. The Task will be invoked |
// on the thread that executes MessageLoop::Run(). |
+ void PostThunk( |
+ const tracked_objects::Location& from_here, |
+ base::Thunk<void(void)> thunk); |
+ |
void PostTask( |
const tracked_objects::Location& from_here, Task* task); |
void PostDelayedTask( |
const tracked_objects::Location& from_here, Task* task, int64 delay_ms); |
+ void PostDelayedThunk( |
+ const tracked_objects::Location& from_here, |
+ base::Thunk<void(void)> thunk, |
+ int64 delay_ms); |
+ |
void PostNonNestableTask( |
const tracked_objects::Location& from_here, Task* task); |