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

Side by Side Diff: base/test/sequenced_worker_pool_owner.cc

Issue 19224003: Use a direct include of the message_loop header in base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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_runner_util_unittest.cc ('k') | base/threading/sequenced_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/test/sequenced_worker_pool_owner.h" 5 #include "base/test/sequenced_worker_pool_owner.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 9
10 namespace base { 10 namespace base {
11 11
12 SequencedWorkerPoolOwner::SequencedWorkerPoolOwner( 12 SequencedWorkerPoolOwner::SequencedWorkerPoolOwner(
13 size_t max_threads, 13 size_t max_threads,
14 const std::string& thread_name_prefix) 14 const std::string& thread_name_prefix)
15 : constructor_message_loop_(MessageLoop::current()), 15 : constructor_message_loop_(MessageLoop::current()),
16 pool_(new SequencedWorkerPool(max_threads, thread_name_prefix, this)), 16 pool_(new SequencedWorkerPool(max_threads, thread_name_prefix, this)),
17 has_work_call_count_(0) {} 17 has_work_call_count_(0) {}
18 18
(...skipping 27 matching lines...) Expand all
46 } 46 }
47 } 47 }
48 48
49 void SequencedWorkerPoolOwner::OnDestruct() { 49 void SequencedWorkerPoolOwner::OnDestruct() {
50 constructor_message_loop_->PostTask( 50 constructor_message_loop_->PostTask(
51 FROM_HERE, 51 FROM_HERE,
52 constructor_message_loop_->QuitWhenIdleClosure()); 52 constructor_message_loop_->QuitWhenIdleClosure());
53 } 53 }
54 54
55 } // namespace base 55 } // namespace base
OLDNEW
« no previous file with comments | « base/task_runner_util_unittest.cc ('k') | base/threading/sequenced_worker_pool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698