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

Side by Side Diff: base/task_scheduler/task_scheduler_impl.h

Issue 2077093002: Rename SchedulerWorkerThread* to SchedulerWorker* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename2
Patch Set: CR Feedback 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 unified diff | Download patch
« no previous file with comments | « base/task_scheduler/sequence.h ('k') | base/task_scheduler/task_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 BASE_TASK_SCHEDULER_TASK_SCHEDULER_IMPL_H_ 5 #ifndef BASE_TASK_SCHEDULER_TASK_SCHEDULER_IMPL_H_
6 #define BASE_TASK_SCHEDULER_TASK_SCHEDULER_IMPL_H_ 6 #define BASE_TASK_SCHEDULER_TASK_SCHEDULER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 private: 53 private:
54 TaskSchedulerImpl(); 54 TaskSchedulerImpl();
55 55
56 void Initialize(); 56 void Initialize();
57 57
58 // Returns the worker pool that runs Tasks with |traits|. 58 // Returns the worker pool that runs Tasks with |traits|.
59 SchedulerWorkerPool* GetWorkerPoolForTraits(const TaskTraits& traits); 59 SchedulerWorkerPool* GetWorkerPoolForTraits(const TaskTraits& traits);
60 60
61 // Callback invoked when a non-single-thread |sequence| isn't empty after a 61 // Callback invoked when a non-single-thread |sequence| isn't empty after a
62 // worker thread pops a Task from it. 62 // worker pops a Task from it.
63 void ReEnqueueSequenceCallback(scoped_refptr<Sequence> sequence); 63 void ReEnqueueSequenceCallback(scoped_refptr<Sequence> sequence);
64 64
65 // Callback invoked when the delayed run time is changed from the 65 // Callback invoked when the delayed run time is changed from the
66 // DelayedTaskManager. 66 // DelayedTaskManager.
67 void OnDelayedRunTimeUpdated(); 67 void OnDelayedRunTimeUpdated();
68 68
69 TaskTracker task_tracker_; 69 TaskTracker task_tracker_;
70 DelayedTaskManager delayed_task_manager_; 70 DelayedTaskManager delayed_task_manager_;
71 71
72 // Worker pool for BACKGROUND Tasks without file I/O. 72 // Worker pool for BACKGROUND Tasks without file I/O.
(...skipping 15 matching lines...) Expand all
88 WaitableEvent join_for_testing_returned_; 88 WaitableEvent join_for_testing_returned_;
89 #endif 89 #endif
90 90
91 DISALLOW_COPY_AND_ASSIGN(TaskSchedulerImpl); 91 DISALLOW_COPY_AND_ASSIGN(TaskSchedulerImpl);
92 }; 92 };
93 93
94 } // namespace internal 94 } // namespace internal
95 } // namespace base 95 } // namespace base
96 96
97 #endif // BASE_TASK_SCHEDULER_TASK_SCHEDULER_IMPL_H_ 97 #endif // BASE_TASK_SCHEDULER_TASK_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « base/task_scheduler/sequence.h ('k') | base/task_scheduler/task_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698