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

Unified Diff: third_party/WebKit/public/platform/WebURLLoader.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/WebURLLoader.h
diff --git a/third_party/WebKit/public/platform/WebURLLoader.h b/third_party/WebKit/public/platform/WebURLLoader.h
index eada222a35754d50362a8ff4febd00194fc96adb..3a914237dc4bb02c8d1cbcde8c3ca9ceadbe6a7d 100644
--- a/third_party/WebKit/public/platform/WebURLLoader.h
+++ b/third_party/WebKit/public/platform/WebURLLoader.h
@@ -37,6 +37,7 @@
namespace blink {
class WebData;
+class WebTaskRunner;
class WebThreadedDataReceiver;
class WebURLLoaderClient;
class WebURLResponse;
@@ -78,6 +79,10 @@ public:
// of the data receiver is assumed by the WebURLLoader and the receiver should
// be deleted on the main thread when no longer needed.
virtual bool attachThreadedDataReceiver(WebThreadedDataReceiver*) { return false; }
+
+ // Sets the task runner for which any loading tasks should be posted on.
+ // Takes ownership of the WebTaskRunner.
+ virtual void setLoadingTaskRunner(WebTaskRunner*) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698