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

Unified Diff: third_party/WebKit/public/platform/WebTaskRunner.h

Issue 1366883002: [Reland] Post loading tasks on the appropriate WebFrameScheduler's queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a clone method to WebTaskRunner which lets us solve the lifetime issue. Created 5 years, 3 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/public/platform/WebTaskRunner.h
diff --git a/third_party/WebKit/public/platform/WebTaskRunner.h b/third_party/WebKit/public/platform/WebTaskRunner.h
index b3e9745fed227a7ff3dc4f9900b96bb97c47f51b..c5afabfd3b9654445fa85787257435f4fd95dc11 100644
--- a/third_party/WebKit/public/platform/WebTaskRunner.h
+++ b/third_party/WebKit/public/platform/WebTaskRunner.h
@@ -39,6 +39,9 @@ public:
// Takes ownership of |Task|. Can be called from any thread.
virtual void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) {}
+ // Returns a clone of the WebTaskRunner.
+ virtual WebTaskRunner* clone() { return nullptr; }
Sami 2015/09/29 11:22:47 nit: I think these can be pure virtual now that we
alex clarke (OOO till 29th) 2015/09/29 16:10:36 Done.
+
#ifdef INSIDE_BLINK
// Helpers for posting bound functions as tasks.
typedef Function<void()> ClosureTask;

Powered by Google App Engine
This is Rietveld 408576698