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_CHILD_TASK_QUEUE_SELECTOR_H_ | 5 #ifndef COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_SELECTOR_H_ |
6 #define COMPONENTS_SCHEDULER_CHILD_TASK_QUEUE_SELECTOR_H_ | 6 #define COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_SELECTOR_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/pending_task.h" | 11 #include "base/pending_task.h" |
12 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
13 #include "components/scheduler/child/task_queue_sets.h" | 13 #include "components/scheduler/base/task_queue_sets.h" |
14 #include "components/scheduler/scheduler_export.h" | 14 #include "components/scheduler/scheduler_export.h" |
15 | 15 |
16 namespace scheduler { | 16 namespace scheduler { |
17 namespace internal { | 17 namespace internal { |
18 | 18 |
19 // TaskQueueSelector is used by the SchedulerHelper to enable prioritization | 19 // TaskQueueSelector is used by the SchedulerHelper to enable prioritization |
20 // of particular task queues. | 20 // of particular task queues. |
21 class SCHEDULER_EXPORT TaskQueueSelector { | 21 class SCHEDULER_EXPORT TaskQueueSelector { |
22 public: | 22 public: |
23 TaskQueueSelector(); | 23 TaskQueueSelector(); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 TaskQueueSets task_queue_sets_; | 90 TaskQueueSets task_queue_sets_; |
91 | 91 |
92 size_t starvation_count_; | 92 size_t starvation_count_; |
93 Observer* task_queue_selector_observer_; // NOT OWNED | 93 Observer* task_queue_selector_observer_; // NOT OWNED |
94 DISALLOW_COPY_AND_ASSIGN(TaskQueueSelector); | 94 DISALLOW_COPY_AND_ASSIGN(TaskQueueSelector); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace internal | 97 } // namespace internal |
98 } // namespace scheduler | 98 } // namespace scheduler |
99 | 99 |
100 #endif // COMPONENTS_SCHEDULER_CHILD_TASK_QUEUE_SELECTOR_H | 100 #endif // COMPONENTS_SCHEDULER_BASE_TASK_QUEUE_SELECTOR_H |
OLD | NEW |