| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_SELECTOR_H_ | 5 #ifndef COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_SELECTOR_H_ |
| 6 #define COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_SELECTOR_H_ | 6 #define COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_SELECTOR_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <set> | 10 #include <set> |
| 9 | 11 |
| 10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" |
| 11 #include "base/pending_task.h" | 14 #include "base/pending_task.h" |
| 12 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
| 13 #include "components/scheduler/base/work_queue_sets.h" | 16 #include "components/scheduler/base/work_queue_sets.h" |
| 14 #include "components/scheduler/scheduler_export.h" | 17 #include "components/scheduler/scheduler_export.h" |
| 15 | 18 |
| 16 namespace scheduler { | 19 namespace scheduler { |
| 17 namespace internal { | 20 namespace internal { |
| 18 | 21 |
| 19 // TaskQueueSelector is used by the SchedulerHelper to enable prioritization | 22 // TaskQueueSelector is used by the SchedulerHelper to enable prioritization |
| 20 // of particular task queues. | 23 // of particular task queues. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 size_t immediate_starvation_count_; | 127 size_t immediate_starvation_count_; |
| 125 size_t high_priority_starvation_count_; | 128 size_t high_priority_starvation_count_; |
| 126 Observer* task_queue_selector_observer_; // NOT OWNED | 129 Observer* task_queue_selector_observer_; // NOT OWNED |
| 127 DISALLOW_COPY_AND_ASSIGN(TaskQueueSelector); | 130 DISALLOW_COPY_AND_ASSIGN(TaskQueueSelector); |
| 128 }; | 131 }; |
| 129 | 132 |
| 130 } // namespace internal | 133 } // namespace internal |
| 131 } // namespace scheduler | 134 } // namespace scheduler |
| 132 | 135 |
| 133 #endif // COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_SELECTOR_H | 136 #endif // COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_SELECTOR_H |
| OLD | NEW |