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

Side by Side Diff: chrome/common/task_queue.cc

Issue 107001: Move scoped_vector.h and stl_util-inl.h to base/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/stl_util-inl.h ('k') | chrome/common/time_format.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/stl_util-inl.h" 5 #include "chrome/common/task_queue.h"
6 6
7 #include "chrome/common/task_queue.h" 7 #include "base/stl_util-inl.h"
8 8
9 TaskQueue::TaskQueue() { 9 TaskQueue::TaskQueue() {
10 } 10 }
11 11
12 TaskQueue::~TaskQueue() { 12 TaskQueue::~TaskQueue() {
13 // We own all the pointes in |queue_|. It is our job to delete them. 13 // We own all the pointes in |queue_|. It is our job to delete them.
14 STLDeleteElements(&queue_); 14 STLDeleteElements(&queue_);
15 } 15 }
16 16
17 void TaskQueue::Run() { 17 void TaskQueue::Run() {
(...skipping 19 matching lines...) Expand all
37 } 37 }
38 38
39 void TaskQueue::Clear() { 39 void TaskQueue::Clear() {
40 // Delete all the elements in the queue and clear the dead pointers. 40 // Delete all the elements in the queue and clear the dead pointers.
41 STLDeleteElements(&queue_); 41 STLDeleteElements(&queue_);
42 } 42 }
43 43
44 bool TaskQueue::Empty() const { 44 bool TaskQueue::Empty() const {
45 return queue_.empty(); 45 return queue_.empty();
46 } 46 }
OLDNEW
« no previous file with comments | « chrome/common/stl_util-inl.h ('k') | chrome/common/time_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698