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

Unified Diff: base/message_loop_proxy_impl.h

Issue 7316015: Support Closure in ALL the loops! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup idle wait. Created 9 years, 5 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/message_loop_proxy_impl.h
diff --git a/base/message_loop_proxy_impl.h b/base/message_loop_proxy_impl.h
index 80d9a2628d546ca3fc26a2c5d3aea15b372f4e9d..8bd265fecb974a3aa85e710c6b3c1061986b763f 100644
--- a/base/message_loop_proxy_impl.h
+++ b/base/message_loop_proxy_impl.h
@@ -32,6 +32,16 @@ class BASE_API MessageLoopProxyImpl : public MessageLoopProxy,
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 +54,12 @@ 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);
+ 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 +74,3 @@ class BASE_API MessageLoopProxyImpl : public MessageLoopProxy,
} // namespace base
#endif // BASE_MESSAGE_LOOP_PROXY_IMPL_H_
-

Powered by Google App Engine
This is Rietveld 408576698