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

Unified Diff: components/task_scheduler_util/browser/initialization.h

Issue 2788223002: Generate TaskScheduler::InitParams from components/task_scheduler_util/. (Closed)
Patch Set: fix-build-error 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 side-by-side diff with in-line comments
Download patch
Index: components/task_scheduler_util/browser/initialization.h
diff --git a/components/task_scheduler_util/browser/initialization.h b/components/task_scheduler_util/browser/initialization.h
index d4584eeca4a8666438f7e414920f8fb719c67aeb..9c660507112f10ddd7c0587638a2781334acb2e6 100644
--- a/components/task_scheduler_util/browser/initialization.h
+++ b/components/task_scheduler_util/browser/initialization.h
@@ -7,9 +7,11 @@
#include <stddef.h>
+#include <memory>
#include <vector>
#include "base/task_scheduler/scheduler_worker_pool_params.h"
+#include "base/task_scheduler/task_scheduler.h"
namespace base {
class TaskTraits;
@@ -17,13 +19,22 @@ class TaskTraits;
namespace task_scheduler_util {
+// Gets a TaskScheduler::InitParams object to initialize TaskScheduler in the
+// browser based off variations. Returns nullptr on failure.
+std::unique_ptr<base::TaskScheduler::InitParams>
+GetBrowserTaskSchedulerInitParamsFromVariations();
+
// Gets a vector of SchedulerWorkerPoolParams to initialize TaskScheduler in the
// browser based off variations. Returns an empty vector on failure.
+//
+// Deprecated. https://crbug.com/690706
std::vector<base::SchedulerWorkerPoolParams>
GetBrowserWorkerPoolParamsFromVariations();
// Maps |traits| to the index of a browser worker pool vector provided by
// GetBrowserWorkerPoolParamsFromVariations().
+//
+// Deprecated. https://crbug.com/690706
size_t BrowserWorkerPoolIndexForTraits(const base::TaskTraits& traits);
// Redirects zero-to-many PostTask APIs to the browser task scheduler based off
« no previous file with comments | « base/task_scheduler/scheduler_worker_pool_params.h ('k') | components/task_scheduler_util/browser/initialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698