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

Unified Diff: components/scheduler/renderer/throttled_time_domain.h

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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: components/scheduler/renderer/throttled_time_domain.h
diff --git a/components/scheduler/renderer/throttled_time_domain.h b/components/scheduler/renderer/throttled_time_domain.h
deleted file mode 100644
index e334c909450ca54ae560bd7248aaef9a04d5cb2e..0000000000000000000000000000000000000000
--- a/components/scheduler/renderer/throttled_time_domain.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_SCHEDULER_RENDERER_THROTTLED_TIME_DOMAIN_H_
-#define COMPONENTS_SCHEDULER_RENDERER_THROTTLED_TIME_DOMAIN_H_
-
-#include "base/macros.h"
-#include "components/scheduler/base/real_time_domain.h"
-
-namespace scheduler {
-
-// A time domain for throttled tasks. behaves like an RealTimeDomain except it
-// relies on the owner (ThrottlingHelper) to schedule wakeups.
-class SCHEDULER_EXPORT ThrottledTimeDomain : public RealTimeDomain {
- public:
- ThrottledTimeDomain(TimeDomain::Observer* observer,
- const char* tracing_category);
- ~ThrottledTimeDomain() override;
-
- // TimeDomain implementation:
- const char* GetName() const override;
- void RequestWakeup(base::TimeTicks now, base::TimeDelta delay) override;
- bool MaybeAdvanceTime() override;
-
- using TimeDomain::ClearExpiredWakeups;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ThrottledTimeDomain);
-};
-
-} // namespace scheduler
-
-#endif // COMPONENTS_SCHEDULER_RENDERER_THROTTLED_TIME_DOMAIN_H_
« no previous file with comments | « components/scheduler/renderer/task_cost_estimator_unittest.cc ('k') | components/scheduler/renderer/throttled_time_domain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698