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

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

Issue 1743813002: Revert of [cherrypick] Fix computation of runtime for throttled tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 years, 10 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 f274e8c081ec5e9deda710b5a06e77bd8b23d45c..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/virtual_time_domain.h"
-
-namespace scheduler {
-
-// A time domain that's mostly a VirtualTimeDomain except that real time is used
-// when computing the delayed runtime.
-class SCHEDULER_EXPORT ThrottledTimeDomain : public VirtualTimeDomain {
- public:
- ThrottledTimeDomain(TimeDomain::Observer* observer,
- base::TickClock* tick_clock);
- ~ThrottledTimeDomain() override;
-
- // TimeDomain implementation:
- base::TimeTicks ComputeDelayedRunTime(base::TimeTicks time_domain_now,
- base::TimeDelta delay) const override;
- const char* GetName() const override;
-
- private:
- base::TickClock* const tick_clock_; // NOT OWNED
-
- DISALLOW_COPY_AND_ASSIGN(ThrottledTimeDomain);
-};
-
-} // namespace scheduler
-
-#endif // COMPONENTS_SCHEDULER_RENDERER_THROTTLED_TIME_DOMAIN_H_
« no previous file with comments | « components/scheduler/base/virtual_time_domain.cc ('k') | components/scheduler/renderer/throttled_time_domain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698