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

Side by Side Diff: base/task_scheduler/scheduler_worker_pool_params.cc

Issue 2196373002: Move SchedulerWorkerPoolParams to the base Namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/task_scheduler/scheduler_worker_pool_params.h" 5 #include "base/task_scheduler/scheduler_worker_pool_params.h"
6 6
7 #include "base/time/time.h" 7 #include "base/time/time.h"
8 8
9 namespace base { 9 namespace base {
10 namespace internal {
11 10
12 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams( 11 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams(
13 const std::string& name, 12 const std::string& name,
14 ThreadPriority thread_priority, 13 ThreadPriority thread_priority,
15 IORestriction io_restriction, 14 IORestriction io_restriction,
16 int max_threads, 15 int max_threads,
17 const TimeDelta& suggested_reclaim_time) 16 const TimeDelta& suggested_reclaim_time)
18 : name_(name), 17 : name_(name),
19 thread_priority_(thread_priority), 18 thread_priority_(thread_priority),
20 io_restriction_(io_restriction), 19 io_restriction_(io_restriction),
21 max_threads_(max_threads), 20 max_threads_(max_threads),
22 suggested_reclaim_time_(suggested_reclaim_time) {} 21 suggested_reclaim_time_(suggested_reclaim_time) {}
23 22
24 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams( 23 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams(
25 SchedulerWorkerPoolParams&& other) = default; 24 SchedulerWorkerPoolParams&& other) = default;
26 25
27 SchedulerWorkerPoolParams& SchedulerWorkerPoolParams::operator=( 26 SchedulerWorkerPoolParams& SchedulerWorkerPoolParams::operator=(
28 SchedulerWorkerPoolParams&& other) = default; 27 SchedulerWorkerPoolParams&& other) = default;
29 28
30 } // namespace internal
31 } // namespace base 29 } // namespace base
OLDNEW
« no previous file with comments | « base/task_scheduler/scheduler_worker_pool_params.h ('k') | base/task_scheduler/task_scheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698