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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/lazy_now.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: third_party/WebKit/Source/platform/scheduler/base/lazy_now.h
diff --git a/components/scheduler/base/lazy_now.h b/third_party/WebKit/Source/platform/scheduler/base/lazy_now.h
similarity index 67%
rename from components/scheduler/base/lazy_now.h
rename to third_party/WebKit/Source/platform/scheduler/base/lazy_now.h
index 959a2450947f0699ed09c5d04d9ac901a414c1bc..1b63f0faf4fede38997b3a039753aa81497ed6a8 100644
--- a/components/scheduler/base/lazy_now.h
+++ b/third_party/WebKit/Source/platform/scheduler/base/lazy_now.h
@@ -2,21 +2,22 @@
// 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_
+#ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_LAZY_NOW_H_
+#define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_LAZY_NOW_H_
#include "base/time/time.h"
-#include "components/scheduler/scheduler_export.h"
+#include "public/platform/WebCommon.h"
namespace base {
class TickClock;
}
+namespace blink {
namespace scheduler {
// Now() is somewhat expensive so it makes sense not to call Now() unless we
// really need to.
-class SCHEDULER_EXPORT LazyNow {
+class BLINK_PLATFORM_EXPORT LazyNow {
public:
explicit LazyNow(base::TimeTicks now) : tick_clock_(nullptr), now_(now) {
DCHECK(!now.is_null());
@@ -32,5 +33,6 @@ class SCHEDULER_EXPORT LazyNow {
};
} // namespace scheduler
+} // namespace blink
-#endif // COMPONENTS_SCHEDULER_BASE_LAZY_NOW_H_
+#endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_LAZY_NOW_H_

Powered by Google App Engine
This is Rietveld 408576698