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

Unified Diff: third_party/WebKit/public/platform/scheduler/child/single_thread_idle_task_runner.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/public/platform/scheduler/child/single_thread_idle_task_runner.h
diff --git a/components/scheduler/child/single_thread_idle_task_runner.h b/third_party/WebKit/public/platform/scheduler/child/single_thread_idle_task_runner.h
similarity index 88%
rename from components/scheduler/child/single_thread_idle_task_runner.h
rename to third_party/WebKit/public/platform/scheduler/child/single_thread_idle_task_runner.h
index 0448586526741df35af6d17f06b809b54e5eab6a..f795e5a588074210040b2f54d7debdf9aa72b819 100644
--- a/components/scheduler/child/single_thread_idle_task_runner.h
+++ b/third_party/WebKit/public/platform/scheduler/child/single_thread_idle_task_runner.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_SCHEDULER_CHILD_SINGLE_THREAD_IDLE_TASK_RUNNER_H_
-#define COMPONENTS_SCHEDULER_CHILD_SINGLE_THREAD_IDLE_TASK_RUNNER_H_
+#ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_CHILD_SINGLE_THREAD_IDLE_TASK_RUNNER_H_
+#define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_CHILD_SINGLE_THREAD_IDLE_TASK_RUNNER_H_
#include "base/bind.h"
#include "base/callback.h"
@@ -12,7 +12,7 @@
#include "base/single_thread_task_runner.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
-#include "components/scheduler/scheduler_export.h"
+#include "public/platform/WebCommon.h"
namespace base {
namespace trace_event {
@@ -20,6 +20,7 @@ class BlameContext;
}
}
+namespace blink {
namespace scheduler {
// A SingleThreadIdleTaskRunner is a task runner for running idle tasks. Idle
@@ -32,7 +33,7 @@ class SingleThreadIdleTaskRunner
typedef base::Callback<void(base::TimeTicks)> IdleTask;
// Used to request idle task deadlines and signal posting of idle tasks.
- class SCHEDULER_EXPORT Delegate {
+ class BLINK_PLATFORM_EXPORT Delegate {
public:
Delegate();
virtual ~Delegate();
@@ -95,5 +96,6 @@ class SingleThreadIdleTaskRunner
};
} // namespace scheduler
+} // namespace blink
-#endif // COMPONENTS_SCHEDULER_CHILD_SINGLE_THREAD_IDLE_TASK_RUNNER_H_
+#endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_CHILD_SINGLE_THREAD_IDLE_TASK_RUNNER_H_

Powered by Google App Engine
This is Rietveld 408576698