base::Bind: Remove Task.
BUG=none
TEST=none
R=awong
Review URL: http://codereview.chromium.org/9086002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116439 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: e7b3a61984f86ccb238664542699c3b8a75b54c6
diff --git a/base/message_loop.cc b/base/message_loop.cc
index 6da3b6b..aa04f45 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -249,68 +249,6 @@
}
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);