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

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

Issue 1098033002: Remove dependency on cc::TestNowSource from scheduler code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/child/scheduler/worker_scheduler_impl.h
diff --git a/content/child/scheduler/worker_scheduler_impl.h b/content/child/scheduler/worker_scheduler_impl.h
index 043476dbf627f7356299964e0ac12d26cb025fb6..6ab1b2afc0b6a3157ecdf114c698ed8659da8847 100644
--- a/content/child/scheduler/worker_scheduler_impl.h
+++ b/content/child/scheduler/worker_scheduler_impl.h
@@ -17,6 +17,7 @@ class ConvertableToTraceFormat;
namespace content {
class NestableSingleThreadTaskRunner;
+class TimeSource;
class CONTENT_EXPORT WorkerSchedulerImpl
: public WorkerScheduler,
@@ -37,7 +38,7 @@ class CONTENT_EXPORT WorkerSchedulerImpl
void Init() override;
void Shutdown() override;
- void SetTimeSourceForTesting(scoped_refptr<cc::TestNowSource> time_source);
+ void SetTimeSourceForTesting(scoped_ptr<TimeSource> time_source);
void SetWorkBatchSizeForTesting(size_t work_batch_size);
base::TimeTicks CurrentIdleTaskDeadlineForTesting() const;

Powered by Google App Engine
This is Rietveld 408576698