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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc

Issue 2798563003: [scheduler] Add TaskQueue::Observer (Closed)
Patch Set: add todo for test timings & wake_up -> wake-up in comments Created 3 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: third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc b/third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc
index 7406dc4b21d654f8b1da39f5fcb646fb1e446504..52ef21c50d8b9430127b2a915e18c4228f310c4e 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc
@@ -13,15 +13,7 @@ namespace blink {
namespace scheduler {
RealTimeDomain::RealTimeDomain(const char* tracing_category)
- : TimeDomain(nullptr),
- tracing_category_(tracing_category),
- task_queue_manager_(nullptr) {}
-
-RealTimeDomain::RealTimeDomain(TimeDomain::Observer* observer,
- const char* tracing_category)
- : TimeDomain(observer),
- tracing_category_(tracing_category),
- task_queue_manager_(nullptr) {}
+ : tracing_category_(tracing_category), task_queue_manager_(nullptr) {}
RealTimeDomain::~RealTimeDomain() {}
@@ -39,7 +31,7 @@ base::TimeTicks RealTimeDomain::Now() const {
return task_queue_manager_->delegate()->NowTicks();
}
-void RealTimeDomain::RequestWakeupAt(base::TimeTicks now,
+void RealTimeDomain::RequestWakeUpAt(base::TimeTicks now,
base::TimeTicks run_time) {
// NOTE this is only called if the scheduled runtime is sooner than any
// previously scheduled runtime, or there is no (outstanding) previously
@@ -47,7 +39,7 @@ void RealTimeDomain::RequestWakeupAt(base::TimeTicks now,
task_queue_manager_->MaybeScheduleDelayedWork(FROM_HERE, this, now, run_time);
}
-void RealTimeDomain::CancelWakeupAt(base::TimeTicks run_time) {
+void RealTimeDomain::CancelWakeUpAt(base::TimeTicks run_time) {
task_queue_manager_->CancelDelayedWork(this, run_time);
}

Powered by Google App Engine
This is Rietveld 408576698