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

Unified Diff: content/child/web_url_loader_impl.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: content/child/web_url_loader_impl.h
diff --git a/content/child/web_url_loader_impl.h b/content/child/web_url_loader_impl.h
index ebad018f21205c64ac762017fe606ae1a81381da..b31b57e3c7e4885b1b1c3ab38321ff5de81ba54f 100644
--- a/content/child/web_url_loader_impl.h
+++ b/content/child/web_url_loader_impl.h
@@ -36,9 +36,10 @@ struct StreamOverrideParameters {
class CONTENT_EXPORT WebURLLoaderImpl
: public NON_EXPORTED_BASE(blink::WebURLLoader) {
public:
- explicit WebURLLoaderImpl(
- ResourceDispatcher* resource_dispatcher,
- scoped_refptr<base::SingleThreadTaskRunner> task_runner);
+
+ // Takes ownership of |web_task_runner|.
+ WebURLLoaderImpl(ResourceDispatcher* resource_dispatcher,
+ scoped_ptr<blink::WebTaskRunner> web_task_runner);
~WebURLLoaderImpl() override;
static void PopulateURLResponse(const GURL& url,
@@ -67,6 +68,7 @@ class CONTENT_EXPORT WebURLLoaderImpl
int intra_priority_value) override;
bool attachThreadedDataReceiver(
blink::WebThreadedDataReceiver* threaded_data_receiver) override;
+ void setLoadingTaskRunner(blink::WebTaskRunner* loading_task_runner) override;
private:
class Context;

Powered by Google App Engine
This is Rietveld 408576698