| Index: content/child/child_process.h
|
| diff --git a/content/child/child_process.h b/content/child/child_process.h
|
| index 150fec7b0440d3d5a63e11934f96e008ec422d0f..0e57c116656f23fff571b49fbb6dc26eb03250a4 100644
|
| --- a/content/child/child_process.h
|
| +++ b/content/child/child_process.h
|
| @@ -10,12 +10,15 @@
|
|
|
| #include "base/macros.h"
|
| #include "base/synchronization/waitable_event.h"
|
| -#include "base/task_scheduler/scheduler_worker_pool_params.h"
|
| #include "base/task_scheduler/task_scheduler.h"
|
| #include "base/threading/platform_thread.h"
|
| #include "base/threading/thread.h"
|
| #include "content/common/content_export.h"
|
|
|
| +namespace base {
|
| +struct TaskSchedulerInitParams;
|
| +}
|
| +
|
| namespace content {
|
| class ChildThreadImpl;
|
|
|
| @@ -37,17 +40,15 @@ class CONTENT_EXPORT ChildProcess {
|
| public:
|
| // Child processes should have an object that derives from this class.
|
| // Normally you would immediately call set_main_thread after construction.
|
| - // |io_thread_priority| is the priority of the IO thread. |worker_pool_params|
|
| - // and |worker_pool_index_for_traits_callback| are used to initialize
|
| - // TaskScheduler. TaskScheduler is initialized with default values if these
|
| - // arguments are left empty.
|
| + // |io_thread_priority| is the priority of the IO thread.
|
| + // |task_scheduler_name| and |task_scheduler_init_params| are used to
|
| + // initialize TaskScheduler. Default params are used if
|
| + // |task_scheduler_init_params| is nullptr.
|
| ChildProcess(
|
| base::ThreadPriority io_thread_priority = base::ThreadPriority::NORMAL,
|
| - const std::vector<base::SchedulerWorkerPoolParams>& worker_pool_params =
|
| - std::vector<base::SchedulerWorkerPoolParams>(),
|
| - base::TaskScheduler::WorkerPoolIndexForTraitsCallback
|
| - worker_pool_index_for_traits_callback =
|
| - base::TaskScheduler::WorkerPoolIndexForTraitsCallback());
|
| + const std::string& task_scheduler_name = "ContentChild",
|
| + std::unique_ptr<base::TaskSchedulerInitParams>
|
| + task_scheduler_init_params = nullptr);
|
| virtual ~ChildProcess();
|
|
|
| // May be NULL if the main thread hasn't been set explicitly.
|
|
|