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

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: Review comments 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..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);

Powered by Google App Engine
This is Rietveld 408576698