| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // TODO(fdoray): Remove this file once TaskScheduler initialization in the | |
| 6 // browser process uses the components/task_scheduler_util/browser/ API on all | |
| 7 // platforms. | |
| 8 | |
| 9 #ifndef COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_BROWSER_UTIL_H_ | |
| 10 #define COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_BROWSER_UTIL_H_ | |
| 11 | |
| 12 #include <stddef.h> | |
| 13 | |
| 14 namespace base { | |
| 15 class TaskTraits; | |
| 16 } | |
| 17 | |
| 18 namespace task_scheduler_util { | |
| 19 namespace initialization { | |
| 20 | |
| 21 // Maps |traits| to the index of a browser worker pool vector provided by | |
| 22 // BrowserWorkerPoolConfigurationToSchedulerWorkerPoolParams() or | |
| 23 // GetDefaultBrowserSchedulerWorkerPoolParams(). | |
| 24 size_t BrowserWorkerPoolIndexForTraits(const base::TaskTraits& traits); | |
| 25 | |
| 26 } // namespace initialization | |
| 27 } // namespace task_scheduler_util | |
| 28 | |
| 29 #endif // COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_BROWSER_UTIL_H_ | |
| OLD | NEW |