OLD | NEW |
---|---|
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_SCHEDULER_WORKER_POOL_IMPL_H_ | 5 #ifndef BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_ |
6 #define BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_ | 6 #define BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 scoped_refptr<Sequence> sequence, | 91 scoped_refptr<Sequence> sequence, |
92 SchedulerWorker* worker) override; | 92 SchedulerWorker* worker) override; |
93 void PostTaskWithSequenceNow(std::unique_ptr<Task> task, | 93 void PostTaskWithSequenceNow(std::unique_ptr<Task> task, |
94 scoped_refptr<Sequence> sequence, | 94 scoped_refptr<Sequence> sequence, |
95 SchedulerWorker* worker) override; | 95 SchedulerWorker* worker) override; |
96 | 96 |
97 const HistogramBase* num_tasks_between_waits_histogram_for_testing() const { | 97 const HistogramBase* num_tasks_between_waits_histogram_for_testing() const { |
98 return num_tasks_between_waits_histogram_; | 98 return num_tasks_between_waits_histogram_; |
99 } | 99 } |
100 | 100 |
101 void ReportHistograms(std::vector<const HistogramBase*>* histograms) const; | |
gab
2016/10/18 14:28:48
This isn't "reporting" histograms (i.e. sending to
robliao
2016/10/18 20:40:25
Done.
| |
102 | |
101 private: | 103 private: |
102 class SchedulerSingleThreadTaskRunner; | 104 class SchedulerSingleThreadTaskRunner; |
103 class SchedulerWorkerDelegateImpl; | 105 class SchedulerWorkerDelegateImpl; |
104 | 106 |
105 SchedulerWorkerPoolImpl(StringPiece name, | 107 SchedulerWorkerPoolImpl(StringPiece name, |
106 SchedulerWorkerPoolParams::IORestriction | 108 SchedulerWorkerPoolParams::IORestriction |
107 io_restriction, | 109 io_restriction, |
108 const TimeDelta& suggested_reclaim_time, | 110 const TimeDelta& suggested_reclaim_time, |
109 TaskTracker* task_tracker, | 111 TaskTracker* task_tracker, |
110 DelayedTaskManager* delayed_task_manager); | 112 DelayedTaskManager* delayed_task_manager); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
196 TaskTracker* const task_tracker_; | 198 TaskTracker* const task_tracker_; |
197 DelayedTaskManager* const delayed_task_manager_; | 199 DelayedTaskManager* const delayed_task_manager_; |
198 | 200 |
199 DISALLOW_COPY_AND_ASSIGN(SchedulerWorkerPoolImpl); | 201 DISALLOW_COPY_AND_ASSIGN(SchedulerWorkerPoolImpl); |
200 }; | 202 }; |
201 | 203 |
202 } // namespace internal | 204 } // namespace internal |
203 } // namespace base | 205 } // namespace base |
204 | 206 |
205 #endif // BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_ | 207 #endif // BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_ |
OLD | NEW |