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

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: Fix UAF in BackgroundHTMLParser Created 5 years, 2 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 4369ad949589fefd4217b8656f6daffa59611e98..6d12febc5cacccda929f0202888f522cdabebf7a 100644
--- a/third_party/WebKit/public/platform/WebTaskRunner.h
+++ b/third_party/WebKit/public/platform/WebTaskRunner.h
@@ -28,11 +28,14 @@ public:
// Schedule a task to be run on the the associated WebThread.
// Takes ownership of |Task|. Can be called from any thread.
- virtual void postTask(const WebTraceLocation&, Task*) {}
+ virtual void postTask(const WebTraceLocation&, Task*) = 0;
// Schedule a task to be run after |delayMs| on the the associated WebThread.
// Takes ownership of |Task|. Can be called from any thread.
- virtual void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) {}
+ virtual void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) = 0;
+
+ // Returns a clone of the WebTaskRunner.
+ virtual WebTaskRunner* clone() = 0;
#ifdef INSIDE_BLINK
// Helpers for posting bound functions as tasks.

Powered by Google App Engine
This is Rietveld 408576698