summaryrefslogtreecommitdiffstats
path: root/base/task_queue.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-07 20:23:43 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-07 20:23:43 +0000
commit9989c9bb16d23b11ff55daf8545b76c2eeba3440 (patch)
tree29637e8e9bb9c56fd04369405de6bfc4e73e151a /base/task_queue.cc
parent3abebda09095620356405de505db7dd5bb22f3fd (diff)
downloadchromium_src-9989c9bb16d23b11ff55daf8545b76c2eeba3440.zip
chromium_src-9989c9bb16d23b11ff55daf8545b76c2eeba3440.tar.gz
chromium_src-9989c9bb16d23b11ff55daf8545b76c2eeba3440.tar.bz2
Make the order of methods in the cc files match the headers in base/.
BUG=68682 TEST=compiles Review URL: http://codereview.chromium.org/6189001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/task_queue.cc')
-rw-r--r--base/task_queue.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/base/task_queue.cc b/base/task_queue.cc
index e3c196b..fdff8ac 100644
--- a/base/task_queue.cc
+++ b/base/task_queue.cc
@@ -15,6 +15,22 @@ TaskQueue::~TaskQueue() {
STLDeleteElements(&queue_);
}
+void TaskQueue::Push(Task* task) {
+ DCHECK(task);
+
+ // Add the task to the back of the queue.
+ queue_.push_back(task);
+}
+
+void TaskQueue::Clear() {
+ // Delete all the elements in the queue and clear the dead pointers.
+ STLDeleteElements(&queue_);
+}
+
+bool TaskQueue::IsEmpty() const {
+ return queue_.empty();
+}
+
void TaskQueue::Run() {
// Nothing to run if our queue is empty.
if (queue_.empty())
@@ -31,19 +47,3 @@ void TaskQueue::Run() {
delete (*task);
}
}
-
-void TaskQueue::Push(Task* task) {
- DCHECK(task);
-
- // Add the task to the back of the queue.
- queue_.push_back(task);
-}
-
-void TaskQueue::Clear() {
- // Delete all the elements in the queue and clear the dead pointers.
- STLDeleteElements(&queue_);
-}
-
-bool TaskQueue::IsEmpty() const {
- return queue_.empty();
-}