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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.h

Issue 2812703002: Revert of [scheduler] Add TaskQueue::Observer (Closed)
Patch Set: Manual Revert 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/renderer/throttled_time_domain.h
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.h b/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.h
index d26f8c18a9a26854ca1b21665d90e6e8a489be18..4faaf5b140b1c6a9161f364acc15a5b79f0be02c 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.h
@@ -12,19 +12,20 @@ namespace blink {
namespace scheduler {
// A time domain for throttled tasks. behaves like an RealTimeDomain except it
-// relies on the owner (TaskQueueThrottler) to schedule wake_ups.
+// relies on the owner (TaskQueueThrottler) to schedule wakeups.
class BLINK_PLATFORM_EXPORT ThrottledTimeDomain : public RealTimeDomain {
public:
- ThrottledTimeDomain(const char* tracing_category);
+ ThrottledTimeDomain(TimeDomain::Observer* observer,
+ const char* tracing_category);
~ThrottledTimeDomain() override;
// TimeDomain implementation:
const char* GetName() const override;
- void RequestWakeUpAt(base::TimeTicks now, base::TimeTicks run_time) override;
- void CancelWakeUpAt(base::TimeTicks run_time) override;
+ void RequestWakeupAt(base::TimeTicks now, base::TimeTicks run_time) override;
+ void CancelWakeupAt(base::TimeTicks run_time) override;
base::Optional<base::TimeDelta> DelayTillNextTask(LazyNow* lazy_now) override;
- using TimeDomain::WakeUpReadyDelayedQueues;
+ using TimeDomain::WakeupReadyDelayedQueues;
private:
DISALLOW_COPY_AND_ASSIGN(ThrottledTimeDomain);

Powered by Google App Engine
This is Rietveld 408576698