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

Unified Diff: base/message_loop.cc

Issue 9086002: base::Bind: Remove Task. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fix. Created 8 years, 12 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.h ('k') | base/message_loop_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.cc
diff --git a/base/message_loop.cc b/base/message_loop.cc
index 6da3b6bf9557dd81f69e1020d0fc4885ffe9ff44..e200bc57bd79a1a02199ea70e555b03bc289a223 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -249,68 +249,6 @@ void MessageLoop::RemoveDestructionObserver(
}
void MessageLoop::PostTask(
- const tracked_objects::Location& from_here, Task* task) {
- DCHECK(task);
- PendingTask pending_task(
- from_here,
- base::Bind(
- &base::subtle::TaskClosureAdapter::Run,
- new base::subtle::TaskClosureAdapter(task, &should_leak_tasks_)),
- CalculateDelayedRuntime(0), true);
- AddToIncomingQueue(&pending_task);
-}
-
-void MessageLoop::PostDelayedTask(
- const tracked_objects::Location& from_here, Task* task, int64 delay_ms) {
- DCHECK(task);
- PendingTask pending_task(
- from_here,
- base::Bind(
- &base::subtle::TaskClosureAdapter::Run,
- new base::subtle::TaskClosureAdapter(task, &should_leak_tasks_)),
- CalculateDelayedRuntime(delay_ms), true);
- AddToIncomingQueue(&pending_task);
-}
-
-void MessageLoop::PostDelayedTask(
- const tracked_objects::Location& from_here,
- Task* task,
- base::TimeDelta delay) {
- PostDelayedTask(from_here, task, delay.InMillisecondsRoundedUp());
-}
-
-void MessageLoop::PostNonNestableTask(
- const tracked_objects::Location& from_here, Task* task) {
- DCHECK(task);
- PendingTask pending_task(
- from_here,
- base::Bind(
- &base::subtle::TaskClosureAdapter::Run,
- new base::subtle::TaskClosureAdapter(task, &should_leak_tasks_)),
- CalculateDelayedRuntime(0), false);
- AddToIncomingQueue(&pending_task);
-}
-
-void MessageLoop::PostNonNestableDelayedTask(
- const tracked_objects::Location& from_here, Task* task, int64 delay_ms) {
- DCHECK(task);
- PendingTask pending_task(
- from_here,
- base::Bind(
- &base::subtle::TaskClosureAdapter::Run,
- new base::subtle::TaskClosureAdapter(task, &should_leak_tasks_)),
- CalculateDelayedRuntime(delay_ms), false);
- AddToIncomingQueue(&pending_task);
-}
-
-void MessageLoop::PostNonNestableDelayedTask(
- const tracked_objects::Location& from_here,
- Task* task,
- base::TimeDelta delay) {
- PostNonNestableDelayedTask(from_here, task, delay.InMillisecondsRoundedUp());
-}
-
-void MessageLoop::PostTask(
const tracked_objects::Location& from_here, const base::Closure& task) {
DCHECK(!task.is_null()) << from_here.ToString();
PendingTask pending_task(from_here, task, CalculateDelayedRuntime(0), true);
« no previous file with comments | « base/message_loop.h ('k') | base/message_loop_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698