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

Unified Diff: base/message_loop.h

Issue 6052006: Proof of concept for tr1-based Task replacement. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/net/base
Patch Set: Examples of replacing CreateFunctor, ScopedRMF, CompletionCallback Created 10 years 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
« base/closure.h ('K') | « base/closure.h ('k') | base/message_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.h
diff --git a/base/message_loop.h b/base/message_loop.h
index a5a94bc0314e8105cccfed852570ed761dc049cd..176916d45fa5cbb39d32f4ae78ac892688f5b279 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/closure.h"
#if defined(OS_WIN)
// We need this to declare base::MessagePumpWin::Dispatcher, which we should
@@ -127,12 +128,19 @@ 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 PostClosure(
+ const tracked_objects::Location& from_here, base::Closure closure);
+
void PostTask(
const tracked_objects::Location& from_here, Task* task);
void PostDelayedTask(
const tracked_objects::Location& from_here, Task* task, int64 delay_ms);
+ void PostDelayedClosure(
+ const tracked_objects::Location& from_here, base::Closure closure,
+ int64 delay_ms);
+
void PostNonNestableTask(
const tracked_objects::Location& from_here, Task* task);
« base/closure.h ('K') | « base/closure.h ('k') | base/message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698