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

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

Issue 1163143002: Scheduler/child/TimeSource could be replaced with base/time/DefaultTickClock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error Created 5 years, 6 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/child/scheduler_helper.cc ('k') | components/scheduler/child/task_queue_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/task_queue_manager.h
diff --git a/components/scheduler/child/task_queue_manager.h b/components/scheduler/child/task_queue_manager.h
index 5fcbf3f3bf5fa430a63a31c2061f1471892ee083..c0766c21e6ebba907d0fd6c7bc588ecd5822a047 100644
--- a/components/scheduler/child/task_queue_manager.h
+++ b/components/scheduler/child/task_queue_manager.h
@@ -15,7 +15,6 @@
#include "base/synchronization/lock.h"
#include "base/threading/thread_checker.h"
#include "components/scheduler/child/task_queue_selector.h"
-#include "components/scheduler/child/time_source.h"
#include "components/scheduler/scheduler_export.h"
namespace base {
@@ -23,6 +22,7 @@ namespace trace_event {
class ConvertableToTraceFormat;
class TracedValue;
}
+class TickClock;
}
namespace scheduler {
@@ -32,7 +32,6 @@ class TaskQueue;
}
class NestableSingleThreadTaskRunner;
class TaskQueueSelector;
-class TimeSource;
// The task queue manager provides N task queues and a selector interface for
// choosing which task queue to service next. Each task queue consists of two
@@ -158,7 +157,7 @@ class SCHEDULER_EXPORT TaskQueueManager : public TaskQueueSelector::Observer {
void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer);
void RemoveTaskObserver(base::MessageLoop::TaskObserver* task_observer);
- void SetTimeSourceForTesting(scoped_ptr<TimeSource> time_source);
+ void SetTimeSourceForTesting(scoped_ptr<base::TickClock> time_source);
// Returns a bitmap where a bit is set iff a task on the corresponding queue
// was run since the last call to GetAndClearTaskWasRunOnQueueBitmap.
@@ -248,7 +247,7 @@ class SCHEDULER_EXPORT TaskQueueManager : public TaskQueueSelector::Observer {
int work_batch_size_;
- scoped_ptr<TimeSource> time_source_;
+ scoped_ptr<base::TickClock> time_source_;
base::ObserverList<base::MessageLoop::TaskObserver> task_observers_;
« no previous file with comments | « components/scheduler/child/scheduler_helper.cc ('k') | components/scheduler/child/task_queue_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698