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

Unified Diff: components/scheduler/child/scheduler_helper.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 | « no previous file | 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 a28e02233b974c6728da47b16d40a704b4e1ae0b..e7818038c9d2b53c72fb15f476e379a321462f3d 100644
--- a/components/scheduler/child/scheduler_helper.h
+++ b/components/scheduler/child/scheduler_helper.h
@@ -7,9 +7,12 @@
#include "components/scheduler/child/prioritizing_task_queue_selector.h"
#include "components/scheduler/child/task_queue_manager.h"
-#include "components/scheduler/child/time_source.h"
#include "components/scheduler/scheduler_export.h"
+namespace base {
+class TickClock;
+}
+
namespace scheduler {
class NestableSingleThreadTaskRunner;
@@ -93,7 +96,7 @@ class SCHEDULER_EXPORT SchedulerHelper {
uint64 GetAndClearTaskWasRunOnQueueBitmap();
// Test helpers.
- void SetTimeSourceForTesting(scoped_ptr<TimeSource> time_source);
+ void SetTimeSourceForTesting(scoped_ptr<base::TickClock> time_source);
void SetWorkBatchSizeForTesting(size_t work_batch_size);
TaskQueueManager* GetTaskQueueManagerForTesting();
@@ -110,7 +113,7 @@ class SCHEDULER_EXPORT SchedulerHelper {
scoped_refptr<base::SingleThreadTaskRunner> control_after_wakeup_task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> default_task_runner_;
- scoped_ptr<TimeSource> time_source_;
+ scoped_ptr<base::TickClock> time_source_;
const char* tracing_category_;
const char* disabled_by_default_tracing_category_;
« no previous file with comments | « no previous file | components/scheduler/child/scheduler_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698