OLD | NEW |
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 #ifndef COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_UTIL_H_ | 5 #ifndef COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_UTIL_H_ |
6 #define COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_UTIL_H_ | 6 #define COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_UTIL_H_ |
7 | 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/task_scheduler/task_scheduler.h" |
| 11 |
| 12 namespace base { |
| 13 class SchedulerWorkerPoolParams; |
| 14 } // namespace base |
| 15 |
8 namespace task_scheduler_util { | 16 namespace task_scheduler_util { |
9 | 17 |
10 // Calls base::TaskScheduler::CreateAndSetDefaultTaskScheduler with arguments | 18 // Calls base::TaskScheduler::CreateAndSetDefaultTaskScheduler with arguments |
11 // derived from the variations system or a default known good set of arguments | 19 // derived from the variations system or a default known good set of arguments |
12 // if the variations parameters are invalid or missing. | 20 // if the variations parameters are invalid or missing. |
13 void InitializeDefaultBrowserTaskScheduler(); | 21 void InitializeDefaultBrowserTaskScheduler(); |
14 | 22 |
| 23 void GetBrowserTaskSchedulerInitParameters( |
| 24 std::vector<base::SchedulerWorkerPoolParams>* params_vector, |
| 25 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* |
| 26 index_to_traits_callback); |
| 27 |
| 28 void MaybePerformRedirectionToTaskScheduler(); |
| 29 |
15 } // namespace task_scheduler_util | 30 } // namespace task_scheduler_util |
16 | 31 |
17 #endif // BASE_TASK_SCHEDULER_INITIALIZATION_UTIL_H_ | 32 #endif // BASE_TASK_SCHEDULER_INITIALIZATION_UTIL_H_ |
OLD | NEW |