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 |