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

Unified Diff: base/task_scheduler/task_scheduler_impl.h

Issue 2199943003: Add TaskScheduler::CreateAndSetDefaultTaskScheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@public
Patch Set: Update Comments Created 4 years, 4 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 | « base/task_scheduler/task_scheduler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_scheduler_impl.h
diff --git a/base/task_scheduler/task_scheduler_impl.h b/base/task_scheduler/task_scheduler_impl.h
index deb2b9fbbd20274277b8598e0c2d9b1e69449a52..2ab2f2962fd267a830b0f4a83d1abdf214f219d4 100644
--- a/base/task_scheduler/task_scheduler_impl.h
+++ b/base/task_scheduler/task_scheduler_impl.h
@@ -37,14 +37,8 @@ class SchedulerServiceThread;
// Default TaskScheduler implementation. This class is thread-safe.
class BASE_EXPORT TaskSchedulerImpl : public TaskScheduler {
public:
- // Returns the index of the worker pool in which a task with |traits| should
- // run. This should be coded in a future-proof way: new traits should
- // gracefully map to a default pool.
- using WorkerPoolIndexForTraitsCallback =
- Callback<size_t(const TaskTraits& traits)>;
-
// Creates and returns an initialized TaskSchedulerImpl. CHECKs on failure.
- // |worker_pools| describes the worker pools to create.
+ // |worker_pool_params_vector| describes the worker pools to create.
// |worker_pool_index_for_traits_callback| returns the index in |worker_pools|
// of the worker pool in which a task with given traits should run.
static std::unique_ptr<TaskSchedulerImpl> Create(
« no previous file with comments | « base/task_scheduler/task_scheduler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698