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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 109283006: Redirect HTML resource bytes directly to parser thread (Chrome side CL) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 18d8b82cce2dd465e40bf4685394354474523339..db5d70e2cff26f57121a1f7ec65cf85b425fedf4 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -229,6 +229,8 @@ class WebURLLoaderImpl::Context : public base::RefCounted<Context>,
void Cancel();
void SetDefersLoading(bool value);
void DidChangePriority(WebURLRequest::Priority new_priority);
+ bool AttachThreadedDataReceiver(
+ blink::WebThreadedDataReceiver* threadedDataReceiver);
darin (slow to review) 2014/03/31 17:00:01 nit: threaded_data_receiver
void Start(const WebURLRequest& request,
ResourceLoaderBridge::SyncLoadResponse* sync_load_response,
BlinkPlatformImpl* platform);
@@ -306,6 +308,14 @@ void WebURLLoaderImpl::Context::DidChangePriority(
ConvertWebKitPriorityToNetPriority(new_priority));
}
+bool WebURLLoaderImpl::Context::AttachThreadedDataReceiver(
+ blink::WebThreadedDataReceiver* threadedDataReceiver) {
darin (slow to review) 2014/03/31 17:00:01 nit: threaded_data_receiver
+ if (bridge_)
+ return bridge_->AttachThreadedDataReceiver(threadedDataReceiver);
darin (slow to review) 2014/03/31 17:00:01 ditto
+
+ return false;
+}
+
void WebURLLoaderImpl::Context::Start(
const WebURLRequest& request,
ResourceLoaderBridge::SyncLoadResponse* sync_load_response,
@@ -872,4 +882,9 @@ void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) {
context_->DidChangePriority(new_priority);
}
+bool WebURLLoaderImpl::attachThreadedDataReceiver(
+ blink::WebThreadedDataReceiver* threadedDataReceiver) {
darin (slow to review) 2014/03/31 17:00:01 nit: threaded_data_receiver
+ return context_->AttachThreadedDataReceiver(threadedDataReceiver);
darin (slow to review) 2014/03/31 17:00:01 ditto
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698