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

Side by Side Diff: components/task_scheduler_util/variations/browser_variations_util.h

Issue 2565013002: Split browser-specific and generic code in components/task_scheduler_util/. (Closed)
Patch Set: self-review Created 4 years 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 unified diff | Download patch
OLDNEW
(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 #ifndef COMPONENTS_TASK_SCHEDULER_UTIL_VARIATIONS_BROWSER_VARIATIONS_UTIL_H_
6 #define COMPONENTS_TASK_SCHEDULER_UTIL_VARIATIONS_BROWSER_VARIATIONS_UTIL_H_
7
8 #include <vector>
9
10 #include "base/task_scheduler/scheduler_worker_pool_params.h"
11
12 namespace task_scheduler_util {
13 namespace variations {
14
15 // Gets the browser SchedulerWorkerPoolParams vector based off of variations.
16 // Returns an empty vector on failure.
17 std::vector<base::SchedulerWorkerPoolParams>
18 GetBrowserSchedulerWorkerPoolParamsFromVariations();
19
20 // Redirects zero-to-many PostTask APIs to the browser task scheduler based off
21 // of input from the variations parameters.
22 void MaybePerformBrowserTaskSchedulerRedirection();
23
24 } // variations
25 } // namespace task_scheduler_util
26
27 #endif // COMPONENTS_TASK_SCHEDULER_UTIL_VARIATIONS_BROWSER_VARIATIONS_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698