Index: base/message_loop_proxy_impl.h |
diff --git a/base/message_loop_proxy_impl.h b/base/message_loop_proxy_impl.h |
index 80d9a2628d546ca3fc26a2c5d3aea15b372f4e9d..4c04148cf276a3c3bb007318ae8d91d3d1b416bf 100644 |
--- a/base/message_loop_proxy_impl.h |
+++ b/base/message_loop_proxy_impl.h |
@@ -25,13 +25,25 @@ class BASE_API MessageLoopProxyImpl : public MessageLoopProxy, |
virtual bool PostTask(const tracked_objects::Location& from_here, |
Task* task); |
virtual bool PostDelayedTask(const tracked_objects::Location& from_here, |
- Task* task, int64 delay_ms); |
+ Task* task, |
+ int64 delay_ms); |
virtual bool PostNonNestableTask(const tracked_objects::Location& from_here, |
Task* task); |
virtual bool PostNonNestableDelayedTask( |
const tracked_objects::Location& from_here, |
Task* task, |
int64 delay_ms); |
+ virtual bool PostTask(const tracked_objects::Location& from_here, |
+ const base::Closure& task); |
+ virtual bool PostDelayedTask(const tracked_objects::Location& from_here, |
+ const base::Closure& task, |
+ int64 delay_ms); |
+ virtual bool PostNonNestableTask(const tracked_objects::Location& from_here, |
+ const base::Closure& task); |
+ virtual bool PostNonNestableDelayedTask( |
+ const tracked_objects::Location& from_here, |
+ const base::Closure& task, |
+ int64 delay_ms); |
virtual bool BelongsToCurrentThread(); |
// MessageLoop::DestructionObserver implementation |
@@ -44,8 +56,15 @@ class BASE_API MessageLoopProxyImpl : public MessageLoopProxy, |
private: |
MessageLoopProxyImpl(); |
+ // TODO(ajwong): Remove this after we've fully migrated to base::Closure. |
bool PostTaskHelper(const tracked_objects::Location& from_here, |
- Task* task, int64 delay_ms, bool nestable); |
+ Task* task, |
+ int64 delay_ms, |
+ bool nestable); |
+ bool PostTaskHelper(const tracked_objects::Location& from_here, |
+ const base::Closure& task, |
+ int64 delay_ms, |
+ bool nestable); |
// For the factory method to work |
friend class MessageLoopProxy; |
@@ -60,4 +79,3 @@ class BASE_API MessageLoopProxyImpl : public MessageLoopProxy, |
} // namespace base |
#endif // BASE_MESSAGE_LOOP_PROXY_IMPL_H_ |
- |