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

Unified Diff: components/task_scheduler_util/initialization_util.h

Issue 2539263003: Move Task Scheduler Initialization From chrome/browser to Content (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: components/task_scheduler_util/initialization_util.h
diff --git a/components/task_scheduler_util/initialization_util.h b/components/task_scheduler_util/initialization_util.h
index 85a3ac5affd63bebc55ffad5e2e0fe2b685c2d5d..83e802875afcb8b90731c0630dba4d67e79dd875 100644
--- a/components/task_scheduler_util/initialization_util.h
+++ b/components/task_scheduler_util/initialization_util.h
@@ -5,6 +5,14 @@
#ifndef COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_UTIL_H_
#define COMPONENTS_TASK_SCHEDULER_UTIL_INITIALIZATION_UTIL_H_
+#include <vector>
+
+#include "base/task_scheduler/task_scheduler.h"
+
+namespace base {
+class SchedulerWorkerPoolParams;
+} // namespace base
+
namespace task_scheduler_util {
// Calls base::TaskScheduler::CreateAndSetDefaultTaskScheduler with arguments
@@ -12,6 +20,13 @@ namespace task_scheduler_util {
// if the variations parameters are invalid or missing.
void InitializeDefaultBrowserTaskScheduler();
+void GetBrowserTaskSchedulerInitParameters(
+ std::vector<base::SchedulerWorkerPoolParams>* params_vector,
+ base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
+ index_to_traits_callback);
+
+void MaybePerformRedirectionToTaskScheduler();
+
} // namespace task_scheduler_util
#endif // BASE_TASK_SCHEDULER_INITIALIZATION_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698