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

Unified Diff: components/scheduler/child/scheduler_helper.h

Issue 1898233002: Report expected task queueing time via UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove export. Fix windows. Created 4 years, 5 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
« no previous file with comments | « components/scheduler/base/time_domain_unittest.cc ('k') | components/scheduler/child/scheduler_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/scheduler_helper.h
diff --git a/components/scheduler/child/scheduler_helper.h b/components/scheduler/child/scheduler_helper.h
index 0348a6808792118a742870a57642af06e0a85b03..c19f0236a55a99da4cfa43af38dee4828bef9ee7 100644
--- a/components/scheduler/child/scheduler_helper.h
+++ b/components/scheduler/child/scheduler_helper.h
@@ -22,7 +22,8 @@ namespace scheduler {
class SchedulerTqmDelegate;
// Common scheduler functionality for default tasks.
-class SCHEDULER_EXPORT SchedulerHelper : public TaskQueueManager::Observer {
+class SCHEDULER_EXPORT SchedulerHelper
+ : public TaskQueueManager::Observer {
public:
// Category strings must have application lifetime (statics or
// literals). They may not include " chars.
@@ -57,6 +58,11 @@ class SCHEDULER_EXPORT SchedulerHelper : public TaskQueueManager::Observer {
void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer);
void RemoveTaskObserver(base::MessageLoop::TaskObserver* task_observer);
+ void SetTaskTimeTracker(TaskTimeTracker* task_time_tracker) {
+ if (task_queue_manager_)
+ task_queue_manager_->SetTaskTimeTracker(task_time_tracker);
+ }
+
// Shuts down the scheduler by dropping any remaining pending work in the work
// queues. After this call any work posted to the task runners will be
// silently dropped.
« no previous file with comments | « components/scheduler/base/time_domain_unittest.cc ('k') | components/scheduler/child/scheduler_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698