Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: content/renderer/scheduler/task_queue_manager.h

Issue 968073003: [content]: Add support for long idle times in the Blink Scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@long_idle_4
Patch Set: Minor tweaks Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..1baa1eb373080036ab37f71d1b568d8291aac871 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 NextPendingDelayedTask();
Sami 2015/03/03 16:55:36 NextPendingDelayedTaskRunTime since we're not retu
rmcilroy 2015/03/04 14:23:12 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);

Powered by Google App Engine
This is Rietveld 408576698