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

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

Issue 1098033002: Remove dependency on cc::TestNowSource from scheduler code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 8 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 | « content/child/scheduler/scheduler_helper_unittest.cc ('k') | content/child/scheduler/task_queue_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/scheduler/task_queue_manager.h
diff --git a/content/child/scheduler/task_queue_manager.h b/content/child/scheduler/task_queue_manager.h
index 2fb35502fb66b19d078051e13c1cee4ffb42a1f2..48588194cbe63c008a99f4834182c7fdce5e2fcc 100644
--- a/content/child/scheduler/task_queue_manager.h
+++ b/content/child/scheduler/task_queue_manager.h
@@ -15,6 +15,7 @@
#include "base/synchronization/lock.h"
#include "base/threading/thread_checker.h"
#include "content/child/scheduler/task_queue_selector.h"
+#include "content/child/scheduler/time_source.h"
#include "content/common/content_export.h"
namespace base {
@@ -24,17 +25,14 @@ class TracedValue;
}
}
-namespace cc {
-class TestNowSource;
-}
-
namespace content {
namespace internal {
class LazyNow;
class TaskQueue;
}
-class TaskQueueSelector;
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
@@ -124,7 +122,7 @@ class CONTENT_EXPORT TaskQueueManager
void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer);
void RemoveTaskObserver(base::MessageLoop::TaskObserver* task_observer);
- void SetTimeSourceForTesting(scoped_refptr<cc::TestNowSource> time_source);
+ void SetTimeSourceForTesting(scoped_ptr<TimeSource> 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.
@@ -211,7 +209,7 @@ class CONTENT_EXPORT TaskQueueManager
int work_batch_size_;
- scoped_refptr<cc::TestNowSource> time_source_;
+ scoped_ptr<TimeSource> time_source_;
ObserverList<base::MessageLoop::TaskObserver> task_observers_;
« no previous file with comments | « content/child/scheduler/scheduler_helper_unittest.cc ('k') | content/child/scheduler/task_queue_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698