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

Side by Side Diff: base/threading/worker_pool_posix.cc

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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 | « base/task_unittest.cc ('k') | base/threading/worker_pool_unittest.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/threading/worker_pool_posix.h" 5 #include "base/threading/worker_pool_posix.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h"
8 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
9 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
10 #include "base/logging.h" 11 #include "base/logging.h"
11 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
12 #include "base/stringprintf.h" 13 #include "base/stringprintf.h"
13 #include "base/task.h"
14 #include "base/threading/platform_thread.h" 14 #include "base/threading/platform_thread.h"
15 #include "base/threading/worker_pool.h" 15 #include "base/threading/worker_pool.h"
16 #include "base/tracked_objects.h" 16 #include "base/tracked_objects.h"
17 17
18 using tracked_objects::TrackedTime; 18 using tracked_objects::TrackedTime;
19 19
20 namespace base { 20 namespace base {
21 21
22 namespace { 22 namespace {
23 23
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 return PendingTask(FROM_HERE, base::Closure()); 179 return PendingTask(FROM_HERE, base::Closure());
180 } 180 }
181 } 181 }
182 182
183 PendingTask pending_task = pending_tasks_.front(); 183 PendingTask pending_task = pending_tasks_.front();
184 pending_tasks_.pop(); 184 pending_tasks_.pop();
185 return pending_task; 185 return pending_task;
186 } 186 }
187 187
188 } // namespace base 188 } // namespace base
OLDNEW
« no previous file with comments | « base/task_unittest.cc ('k') | base/threading/worker_pool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698