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

Unified Diff: base/task_scheduler/worker_pool_params.cc

Issue 2146223002: Refactor WorkerPoolCreationArgs to a Read-Only WorkerPoolParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: base/task_scheduler/worker_pool_params.cc
diff --git a/base/task_scheduler/worker_pool_params.cc b/base/task_scheduler/worker_pool_params.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3f9c45189fc6a7d158b878d92c36da57d0a7874c
--- /dev/null
+++ b/base/task_scheduler/worker_pool_params.cc
@@ -0,0 +1,21 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/task_scheduler/worker_pool_params.h"
+
+namespace base {
+namespace internal {
+
+WorkerPoolParams::WorkerPoolParams(
+ const std::string& name,
+ ThreadPriority thread_priority,
+ SchedulerWorkerPoolImpl::IORestriction io_restriction,
+ int max_threads)
+ : name_(name),
+ thread_priority_(thread_priority),
+ io_restriction_(io_restriction),
+ max_threads_(max_threads) {}
+
+} // namespace internal
+} // namespace base
« base/task_scheduler/worker_pool_params.h ('K') | « base/task_scheduler/worker_pool_params.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698