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

Unified Diff: base/task_scheduler/task_scheduler.h

Issue 2064073003: TaskScheduler: Make the worker pools of TaskSchedulerImpl configurable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | base/task_scheduler/task_scheduler.cc » ('j') | base/task_scheduler/task_scheduler_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_scheduler.h
diff --git a/base/task_scheduler/task_scheduler.h b/base/task_scheduler/task_scheduler.h
index b8da64b891a952a4cc629ccae962c32c765c9645..e344e6f9f43fbfd2c9398fffec31200384d9746c 100644
--- a/base/task_scheduler/task_scheduler.h
+++ b/base/task_scheduler/task_scheduler.h
@@ -5,7 +5,9 @@
#ifndef BASE_TASK_SCHEDULER_TASK_SCHEDULER_H_
#define BASE_TASK_SCHEDULER_TASK_SCHEDULER_H_
+#include <map>
#include <memory>
+#include <string>
#include "base/base_export.h"
#include "base/callback_forward.h"
@@ -60,8 +62,10 @@ class BASE_EXPORT TaskScheduler {
// API for this process.
static void SetInstance(std::unique_ptr<TaskScheduler> task_scheduler);
- // Initializes the default task scheduler for this process.
- static void InitializeDefaultTaskScheduler();
+ // Initializes the default task scheduler for this process. |variation_params|
+ // is used to configure the scheduler (can be empty).
+ static void InitializeDefaultTaskScheduler(
robliao 2016/06/14 21:43:44 Can TaskSchedulerImpl pick these up without the ca
fdoray 2016/06/15 17:14:32 No because variations::GetVariationParams() is in
robliao 2016/06/15 17:32:37 Looking a bit more broadly, it's conceivable that
fdoray 2016/06/15 19:54:53 What do you think of this? class SchedulerThreadP
gab 2016/06/15 19:56:03 I think it's fine to match our variations to finch
fdoray 2016/06/16 13:02:05 gab@: WDYT of my new idea? (2016/06/15 19:54:53 ht
gab 2016/06/16 15:07:07 As discussed in person, this SGTM as a customizabl
fdoray 2016/06/16 18:10:53 Our design doc says that we'll have a TestTaskSche
+ const std::map<std::string, std::string>& variation_params);
// Retrieve the TaskScheduler set via SetInstance() or
// InitializeDefaultTaskScheduler(). This should be used very rarely; most
« no previous file with comments | « no previous file | base/task_scheduler/task_scheduler.cc » ('j') | base/task_scheduler/task_scheduler_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698