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

Side by Side Diff: components/task_scheduler_util/renderer/initialization.h

Issue 2799453002: Remove deprecated functions from components/task_scheduler_util/. (Closed)
Patch Set: Created 3 years, 8 months 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_RENDERER_INITIALIZATION_H_ 5 #ifndef COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_
6 #define COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_ 6 #define COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_
7 7
8 #include <stddef.h> 8 #include <memory>
9 9
10 #include <memory>
11 #include <vector>
12
13 #include "base/task_scheduler/scheduler_worker_pool_params.h"
14 #include "base/task_scheduler/task_scheduler.h" 10 #include "base/task_scheduler/task_scheduler.h"
15 11
16 namespace base {
17 class TaskTraits;
18 }
19
20 namespace task_scheduler_util { 12 namespace task_scheduler_util {
21 13
22 // Gets a TaskScheduler::InitParams object to initialize TaskScheduler in a 14 // Gets a TaskScheduler::InitParams object to initialize TaskScheduler in a
23 // renderer based off variations specified on the command line. Returns nullptr 15 // renderer based off variations specified on the command line. Returns nullptr
24 // on failure. 16 // on failure.
25 std::unique_ptr<base::TaskScheduler::InitParams> 17 std::unique_ptr<base::TaskScheduler::InitParams>
26 GetRendererTaskSchedulerInitParamsFromCommandLine(); 18 GetRendererTaskSchedulerInitParamsFromCommandLine();
27 19
28 // Gets a vector of SchedulerWorkerPoolParams to initialize TaskScheduler in a
29 // renderer based off variation params specified on the command line. Returns an
30 // empty vector if variation params specified on the command line are incomplete
31 // or invalid.
32 //
33 // Deprecated. https://crbug.com/690706
34 std::vector<base::SchedulerWorkerPoolParams> GetRendererWorkerPoolParams();
35
36 // Maps |traits| to the index of a renderer worker pool vector provided by
37 // GetRendererWorkerPoolParams().
38 //
39 // Deprecated. https://crbug.com/690706
40 size_t RendererWorkerPoolIndexForTraits(const base::TaskTraits& traits);
41
42 } // namespace task_scheduler_util 20 } // namespace task_scheduler_util
43 21
44 #endif // COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_ 22 #endif // COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_
OLDNEW
« no previous file with comments | « components/task_scheduler_util/browser/initialization.cc ('k') | components/task_scheduler_util/renderer/initialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698