| 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_TIME_DOMAIN_H_ | 5 #ifndef COMPONENTS_SCHEDULER_BASE_TIME_DOMAIN_H_ |
| 6 #define COMPONENTS_SCHEDULER_BASE_TIME_DOMAIN_H_ | 6 #define COMPONENTS_SCHEDULER_BASE_TIME_DOMAIN_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 // This lock guards only |newly_updatable_|. It's not expected to be heavily | 145 // This lock guards only |newly_updatable_|. It's not expected to be heavily |
| 146 // contended. | 146 // contended. |
| 147 base::Lock newly_updatable_lock_; | 147 base::Lock newly_updatable_lock_; |
| 148 std::vector<internal::TaskQueueImpl*> newly_updatable_; | 148 std::vector<internal::TaskQueueImpl*> newly_updatable_; |
| 149 | 149 |
| 150 // Set of task queues with avaliable work on the incoming queue. This should | 150 // Set of task queues with avaliable work on the incoming queue. This should |
| 151 // only be accessed from the main thread. | 151 // only be accessed from the main thread. |
| 152 std::set<internal::TaskQueueImpl*> updatable_queue_set_; | 152 std::set<internal::TaskQueueImpl*> updatable_queue_set_; |
| 153 | 153 |
| 154 #if DCHECK_IS_ON() | |
| 155 std::set<internal::TaskQueueImpl*> registered_task_queues_; | |
| 156 #endif | |
| 157 | |
| 158 Observer* observer_; // NOT OWNED. | 154 Observer* observer_; // NOT OWNED. |
| 159 | 155 |
| 160 base::ThreadChecker main_thread_checker_; | 156 base::ThreadChecker main_thread_checker_; |
| 161 | 157 |
| 162 DISALLOW_COPY_AND_ASSIGN(TimeDomain); | 158 DISALLOW_COPY_AND_ASSIGN(TimeDomain); |
| 163 }; | 159 }; |
| 164 | 160 |
| 165 } // namespace scheduler | 161 } // namespace scheduler |
| 166 | 162 |
| 167 #endif // COMPONENTS_SCHEDULER_BASE_TIME_DOMAIN_H_ | 163 #endif // COMPONENTS_SCHEDULER_BASE_TIME_DOMAIN_H_ |
| OLD | NEW |