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

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: 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..7bcacfae844a05ec085078e39deb0cccbb1cd757 100644
--- a/components/scheduler/child/web_task_runner_impl.h
+++ b/components/scheduler/child/web_task_runner_impl.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_WEB_TASK_RUNNER_H_
-#define COMPONENTS_SCHEDULER_CHILD_WEB_TASK_RUNNER_H_
+#ifndef COMPONENTS_SCHEDULER_CHILD_WEB_task_queue_H_
Sami 2016/02/05 14:19:36 Probably did not mean to change this?
alex clarke (OOO till 29th) 2016/02/05 14:47:02 Done.
+#define COMPONENTS_SCHEDULER_CHILD_WEB_task_queue_H_
#include "base/macros.h"
#include "base/memory/ref_counted.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,11 +36,11 @@ 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);
};
} // namespace scheduler
-#endif // COMPONENTS_SCHEDULER_CHILD_WEB_TASK_RUNNER_H_
+#endif // COMPONENTS_SCHEDULER_CHILD_WEB_task_queue_H_
Sami 2016/02/05 14:19:36 Ditto.
alex clarke (OOO till 29th) 2016/02/05 14:47:02 Done.
« 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