| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |