| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 SchedulerWorker* worker) override; | 95 SchedulerWorker* worker) override; |
| 96 | 96 |
| 97 const HistogramBase* num_tasks_before_detach_histogram() const { | 97 const HistogramBase* num_tasks_before_detach_histogram() const { |
| 98 return num_tasks_before_detach_histogram_; | 98 return num_tasks_before_detach_histogram_; |
| 99 } | 99 } |
| 100 | 100 |
| 101 const HistogramBase* num_tasks_between_waits_histogram() const { | 101 const HistogramBase* num_tasks_between_waits_histogram() const { |
| 102 return num_tasks_between_waits_histogram_; | 102 return num_tasks_between_waits_histogram_; |
| 103 } | 103 } |
| 104 | 104 |
| 105 void GetHistograms(std::vector<const HistogramBase*>* histograms) const; |
| 106 |
| 105 private: | 107 private: |
| 106 class SchedulerSingleThreadTaskRunner; | 108 class SchedulerSingleThreadTaskRunner; |
| 107 class SchedulerWorkerDelegateImpl; | 109 class SchedulerWorkerDelegateImpl; |
| 108 | 110 |
| 109 SchedulerWorkerPoolImpl(StringPiece name, | 111 SchedulerWorkerPoolImpl(StringPiece name, |
| 110 SchedulerWorkerPoolParams::IORestriction | 112 SchedulerWorkerPoolParams::IORestriction |
| 111 io_restriction, | 113 io_restriction, |
| 112 const TimeDelta& suggested_reclaim_time, | 114 const TimeDelta& suggested_reclaim_time, |
| 113 TaskTracker* task_tracker, | 115 TaskTracker* task_tracker, |
| 114 DelayedTaskManager* delayed_task_manager); | 116 DelayedTaskManager* delayed_task_manager); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 TaskTracker* const task_tracker_; | 213 TaskTracker* const task_tracker_; |
| 212 DelayedTaskManager* const delayed_task_manager_; | 214 DelayedTaskManager* const delayed_task_manager_; |
| 213 | 215 |
| 214 DISALLOW_COPY_AND_ASSIGN(SchedulerWorkerPoolImpl); | 216 DISALLOW_COPY_AND_ASSIGN(SchedulerWorkerPoolImpl); |
| 215 }; | 217 }; |
| 216 | 218 |
| 217 } // namespace internal | 219 } // namespace internal |
| 218 } // namespace base | 220 } // namespace base |
| 219 | 221 |
| 220 #endif // BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_ | 222 #endif // BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_IMPL_H_ |
| OLD | NEW |