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

Unified Diff: components/scheduler/base/lazy_now.h

Issue 1432263002: (reland) Adds TimeDomains to the TaskQueueManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 1 month 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/base/lazy_now.h
diff --git a/components/scheduler/base/lazy_now.h b/components/scheduler/base/lazy_now.h
deleted file mode 100644
index fd52322a964f13a3d4fb772804717787d8d282d4..0000000000000000000000000000000000000000
--- a/components/scheduler/base/lazy_now.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2015 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_BASE_LAZY_NOW_H_
-#define COMPONENTS_SCHEDULER_BASE_LAZY_NOW_H_
-
-#include "base/time/time.h"
-
-namespace base {
-class TickClock;
-}
-
-namespace scheduler {
-namespace internal {
-
-// Now() is somewhat expensive so it makes sense not to call Now() unless we
-// really need to.
-class LazyNow {
- public:
- explicit LazyNow(base::TimeTicks now) : tick_clock_(nullptr), now_(now) {
- DCHECK(!now.is_null());
- }
-
- explicit LazyNow(base::TickClock* tick_clock) : tick_clock_(tick_clock) {}
-
- base::TimeTicks Now();
-
- private:
- base::TickClock* tick_clock_; // NOT OWNED
- base::TimeTicks now_;
-};
-
-} // namespace internal
-} // namespace scheduler
-
-#endif // COMPONENTS_SCHEDULER_BASE_LAZY_NOW_H_

Powered by Google App Engine
This is Rietveld 408576698