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

Side by Side Diff: mojo/runner/task_runners.cc

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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
« no previous file with comments | « mojo/runner/shell_test_base_unittest.cc ('k') | mojo/runner/tracer.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "mojo/runner/task_runners.h" 5 #include "mojo/runner/task_runners.h"
6 6
7 #include <stddef.h>
8
7 #include "base/threading/sequenced_worker_pool.h" 9 #include "base/threading/sequenced_worker_pool.h"
8 10
9 namespace mojo { 11 namespace mojo {
10 namespace runner { 12 namespace runner {
11 13
12 namespace { 14 namespace {
13 15
14 const size_t kMaxBlockingPoolThreads = 3; 16 const size_t kMaxBlockingPoolThreads = 3;
15 17
16 scoped_ptr<base::Thread> CreateIOThread(const char* name) { 18 scoped_ptr<base::Thread> CreateIOThread(const char* name) {
(...skipping 13 matching lines...) Expand all
30 blocking_pool_(new base::SequencedWorkerPool(kMaxBlockingPoolThreads, 32 blocking_pool_(new base::SequencedWorkerPool(kMaxBlockingPoolThreads,
31 "blocking_pool")) { 33 "blocking_pool")) {
32 } 34 }
33 35
34 TaskRunners::~TaskRunners() { 36 TaskRunners::~TaskRunners() {
35 blocking_pool_->Shutdown(); 37 blocking_pool_->Shutdown();
36 } 38 }
37 39
38 } // namespace runner 40 } // namespace runner
39 } // namespace mojo 41 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/runner/shell_test_base_unittest.cc ('k') | mojo/runner/tracer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698