Index: content/renderer/scheduler/task_queue_manager.h |
diff --git a/content/renderer/scheduler/task_queue_manager.h b/content/renderer/scheduler/task_queue_manager.h |
index 8f32b93a0ace6674cfa227db573ca5bad6f4540d..1df2ae47956995adede1dffdc86ae2904e3bbc61 100644 |
--- a/content/renderer/scheduler/task_queue_manager.h |
+++ b/content/renderer/scheduler/task_queue_manager.h |
@@ -96,6 +96,10 @@ class CONTENT_EXPORT TaskQueueManager { |
// lock, so calling it has some overhead. |
bool IsQueueEmpty(size_t queue_index) const; |
+ // Returns the time of the next pending delayed task in any queue. Returns |
+ // a null TimeTicks object if no tasks are pending. |
+ base::TimeTicks NextPendingDelayedTaskRunTime(); |
Sami
2015/03/04 18:26:41
Could you add a TQM unit test for this too?
rmcilroy
2015/03/05 11:48:52
Done.
|
+ |
// Set the name |queue_index| for tracing purposes. |name| must be a pointer |
// to a static string. |
void SetQueueName(size_t queue_index, const char* name); |