| 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_VARIATIONS_BROWSER_VARIATIONS_UTIL_H_ | |
| 10 #define COMPONENTS_TASK_SCHEDULER_UTIL_VARIATIONS_BROWSER_VARIATIONS_UTIL_H_ | |
| 11 | |
| 12 #include <vector> | |
| 13 | |
| 14 #include "base/task_scheduler/scheduler_worker_pool_params.h" | |
| 15 | |
| 16 namespace task_scheduler_util { | |
| 17 namespace variations { | |
| 18 | |
| 19 // Gets the browser SchedulerWorkerPoolParams vector based off of variations. | |
| 20 // Returns an empty vector on failure. | |
| 21 std::vector<base::SchedulerWorkerPoolParams> | |
| 22 GetBrowserSchedulerWorkerPoolParamsFromVariations(); | |
| 23 | |
| 24 // Redirects zero-to-many PostTask APIs to the browser task scheduler based off | |
| 25 // of input from the variations parameters. | |
| 26 void MaybePerformBrowserTaskSchedulerRedirection(); | |
| 27 | |
| 28 } // variations | |
| 29 } // namespace task_scheduler_util | |
| 30 | |
| 31 #endif // COMPONENTS_TASK_SCHEDULER_UTIL_VARIATIONS_BROWSER_VARIATIONS_UTIL_H_ | |
| OLD | NEW |