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

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

Issue 2798563003: [scheduler] Add TaskQueue::Observer (Closed)
Patch Set: 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/time_domain.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/time_domain.cc b/third_party/WebKit/Source/platform/scheduler/base/time_domain.cc
index 5c68b3defb11fd0aaf85e28cb4a00957b7c38bfa..d56a6a91a404e6d103f075ea933422656e969971 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/time_domain.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/time_domain.cc
@@ -13,7 +13,7 @@
namespace blink {
namespace scheduler {
-TimeDomain::TimeDomain(Observer* observer) : observer_(observer) {}
+TimeDomain::TimeDomain() {}
TimeDomain::~TimeDomain() {
DCHECK(main_thread_checker_.CalledOnValidThread());
@@ -55,14 +55,6 @@ void TimeDomain::ScheduleDelayedWork(
// If |queue| is the first wakeup then request the wakeup.
if (delayed_wakeup_queue_.min().queue == queue)
RequestWakeupAt(now, wake_up.time);
-
- if (observer_)
- observer_->OnTimeDomainHasDelayedWork(queue);
-}
-
-void TimeDomain::OnQueueHasImmediateWork(internal::TaskQueueImpl* queue) {
- if (observer_)
- observer_->OnTimeDomainHasImmediateWork(queue);
}
void TimeDomain::CancelDelayedWork(internal::TaskQueueImpl* queue) {

Powered by Google App Engine
This is Rietveld 408576698