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

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: addressed nit and rebased. 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
« no previous file with comments | « base/message_loop_proxy.h ('k') | base/message_loop_proxy_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
-
« no previous file with comments | « base/message_loop_proxy.h ('k') | base/message_loop_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698