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

Unified Diff: components/scheduler/child/web_task_runner_impl.h

Issue 1675633002: WebTaskRunnerImpl to take a TaskQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 10 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: components/scheduler/child/web_task_runner_impl.h
diff --git a/components/scheduler/child/web_task_runner_impl.h b/components/scheduler/child/web_task_runner_impl.h
index 429e1ec6ef84922d323c9a80cf65b114216f6315..ed4a3f886a72d7f93eb52d995f048ed93fc14019 100644
--- a/components/scheduler/child/web_task_runner_impl.h
+++ b/components/scheduler/child/web_task_runner_impl.h
@@ -11,23 +11,15 @@
#include "components/scheduler/scheduler_export.h"
#include "third_party/WebKit/public/platform/WebTaskRunner.h"
-namespace base {
-class SingleThreadTaskRunner;
-} // namespace base
-
namespace scheduler {
+class TaskQueue;
class SCHEDULER_EXPORT WebTaskRunnerImpl : public blink::WebTaskRunner {
public:
- explicit WebTaskRunnerImpl(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner);
+ explicit WebTaskRunnerImpl(scoped_refptr<TaskQueue> task_queue);
~WebTaskRunnerImpl() override;
- const scoped_refptr<base::SingleThreadTaskRunner>& task_runner() const {
- return task_runner_;
- }
-
// blink::WebTaskRunner implementation:
void postTask(const blink::WebTraceLocation& web_location,
blink::WebTaskRunner::Task* task) override;
@@ -44,7 +36,7 @@ class SCHEDULER_EXPORT WebTaskRunnerImpl : public blink::WebTaskRunner {
static void runTask(scoped_ptr<blink::WebTaskRunner::Task>);
private:
- scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+ scoped_refptr<TaskQueue> task_queue_;
DISALLOW_COPY_AND_ASSIGN(WebTaskRunnerImpl);
};
« no previous file with comments | « components/scheduler/child/web_scheduler_impl.cc ('k') | components/scheduler/child/web_task_runner_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698