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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another GYP fix Created 4 years, 5 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/child/web_task_runner_impl.cc
diff --git a/components/scheduler/child/web_task_runner_impl.cc b/third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc
similarity index 86%
rename from components/scheduler/child/web_task_runner_impl.cc
rename to third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc
index 922ca4a95ed81793f7c6b432c13549c611d3d8bb..f893b345d08ef072673dd210bc0b696284646687 100644
--- a/components/scheduler/child/web_task_runner_impl.cc
+++ b/third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/scheduler/child/web_task_runner_impl.h"
+#include "platform/scheduler/child/web_task_runner_impl.h"
#include "base/bind.h"
#include "base/location.h"
-#include "components/scheduler/base/task_queue.h"
-#include "components/scheduler/base/time_domain.h"
-#include "third_party/WebKit/public/platform/WebTraceLocation.h"
+#include "public/platform/scheduler/base/task_queue.h"
+#include "platform/scheduler/base/time_domain.h"
+#include "public/platform/WebTraceLocation.h"
+namespace blink {
namespace scheduler {
WebTaskRunnerImpl::WebTaskRunnerImpl(scoped_refptr<TaskQueue> task_queue)
@@ -65,9 +66,14 @@ blink::WebTaskRunner* WebTaskRunnerImpl::clone() {
return new WebTaskRunnerImpl(task_queue_);
}
+scoped_refptr<base::SingleThreadTaskRunner> WebTaskRunnerImpl::taskRunner() {
+ return task_queue_;
+}
+
void WebTaskRunnerImpl::runTask(
std::unique_ptr<blink::WebTaskRunner::Task> task) {
task->run();
}
} // namespace scheduler
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698