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

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

Issue 2568063003: Remove WebTaskRunner::Task (Closed)
Patch Set: . Created 4 years 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.h
diff --git a/third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.h b/third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.h
index f8fa9c256567bd63657cff7eafde4e2894e37764..2eb7f1122c8c35db353bcb1c52707d10be7f314f 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.h
@@ -24,11 +24,6 @@ class BLINK_PLATFORM_EXPORT WebTaskRunnerImpl : public WebTaskRunner {
~WebTaskRunnerImpl() override;
// WebTaskRunner implementation:
- void postTask(const WebTraceLocation& web_location,
- WebTaskRunner::Task* task) override;
- void postDelayedTask(const WebTraceLocation& web_location,
- WebTaskRunner::Task* task,
- double delayMs) override;
void postDelayedTask(const WebTraceLocation&,
const base::Closure&,
double delayMs) override;
@@ -38,14 +33,6 @@ class BLINK_PLATFORM_EXPORT WebTaskRunnerImpl : public WebTaskRunner {
std::unique_ptr<WebTaskRunner> clone() override;
base::SingleThreadTaskRunner* toSingleThreadTaskRunner() override;
- // WebTaskRunner::Task should be wrapped by base::Passed() when
- // used with base::Bind(). See https://crbug.com/551356.
- // runTask() is a helper to call WebTaskRunner::Task::run from
- // std::unique_ptr<WebTaskRunner::Task>.
- // runTask() is placed here because std::unique_ptr<> cannot be used from
- // Blink.
- static void runTask(std::unique_ptr<WebTaskRunner::Task>);
-
private:
base::TimeTicks Now() const;

Powered by Google App Engine
This is Rietveld 408576698