| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_MANAGER_H_ |
| 6 #define CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_MANAGER_H_ | 6 #define CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/atomic_sequence_num.h" | 10 #include "base/atomic_sequence_num.h" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 internal::EnqueueOrder GetNextSequenceNumber(); | 194 internal::EnqueueOrder GetNextSequenceNumber(); |
| 195 | 195 |
| 196 // Calls MaybeAdvanceTime on all time domains and returns true if one of them | 196 // Calls MaybeAdvanceTime on all time domains and returns true if one of them |
| 197 // was able to advance. | 197 // was able to advance. |
| 198 bool TryAdvanceTimeDomains(); | 198 bool TryAdvanceTimeDomains(); |
| 199 | 199 |
| 200 void MaybeRecordTaskDelayHistograms( | 200 void MaybeRecordTaskDelayHistograms( |
| 201 const internal::TaskQueueImpl::Task& pending_task, | 201 const internal::TaskQueueImpl::Task& pending_task, |
| 202 const internal::TaskQueueImpl* queue); | 202 const internal::TaskQueueImpl* queue); |
| 203 | 203 |
| 204 scoped_refptr<base::trace_event::ConvertableToTraceFormat> | 204 scoped_ptr<base::trace_event::ConvertableToTraceFormat> |
| 205 AsValueWithSelectorResult(bool should_run, | 205 AsValueWithSelectorResult(bool should_run, |
| 206 internal::WorkQueue* selected_work_queue) const; | 206 internal::WorkQueue* selected_work_queue) const; |
| 207 | 207 |
| 208 std::set<TimeDomain*> time_domains_; | 208 std::set<TimeDomain*> time_domains_; |
| 209 scoped_ptr<RealTimeDomain> real_time_domain_; | 209 scoped_ptr<RealTimeDomain> real_time_domain_; |
| 210 | 210 |
| 211 std::set<scoped_refptr<internal::TaskQueueImpl>> queues_; | 211 std::set<scoped_refptr<internal::TaskQueueImpl>> queues_; |
| 212 | 212 |
| 213 // We have to be careful when deleting a queue because some of the code uses | 213 // We have to be careful when deleting a queue because some of the code uses |
| 214 // raw pointers and doesn't expect the rug to be pulled out from underneath. | 214 // raw pointers and doesn't expect the rug to be pulled out from underneath. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 Observer* observer_; // NOT OWNED | 248 Observer* observer_; // NOT OWNED |
| 249 scoped_refptr<DeletionSentinel> deletion_sentinel_; | 249 scoped_refptr<DeletionSentinel> deletion_sentinel_; |
| 250 base::WeakPtrFactory<TaskQueueManager> weak_factory_; | 250 base::WeakPtrFactory<TaskQueueManager> weak_factory_; |
| 251 | 251 |
| 252 DISALLOW_COPY_AND_ASSIGN(TaskQueueManager); | 252 DISALLOW_COPY_AND_ASSIGN(TaskQueueManager); |
| 253 }; | 253 }; |
| 254 | 254 |
| 255 } // namespace scheduler | 255 } // namespace scheduler |
| 256 | 256 |
| 257 #endif // CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_MANAGER_H_ | 257 #endif // CONTENT_RENDERER_SCHEDULER_BASE_TASK_QUEUE_MANAGER_H_ |
| OLD | NEW |