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

Unified Diff: webkit/child/weburlloader_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, 10 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
« webkit/child/resource_loader_bridge.h ('K') | « webkit/child/weburlloader_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/child/weburlloader_impl.cc
diff --git a/webkit/child/weburlloader_impl.cc b/webkit/child/weburlloader_impl.cc
index 08857219febad376f6cc332f665f9fcf1a6d9711..c8b0efcc53feaee115012e53a935473d179c4460 100644
--- a/webkit/child/weburlloader_impl.cc
+++ b/webkit/child/weburlloader_impl.cc
@@ -224,6 +224,7 @@ class WebURLLoaderImpl::Context : public base::RefCounted<Context>,
void Cancel();
void SetDefersLoading(bool value);
void DidChangePriority(WebURLRequest::Priority new_priority);
+ blink::WebThreadedResourceProvider* CreateThreadedResourceProvider();
void Start(
const WebURLRequest& request,
ResourceLoaderBridge::SyncLoadResponse* sync_load_response,
@@ -300,6 +301,14 @@ void WebURLLoaderImpl::Context::DidChangePriority(
ConvertWebKitPriorityToNetPriority(new_priority));
}
+blink::WebThreadedResourceProvider*
+WebURLLoaderImpl::Context::CreateThreadedResourceProvider() {
+ if (bridge_)
+ return bridge_->CreateThreadedResourceProvider();
+
+ return NULL;
+}
+
void WebURLLoaderImpl::Context::Start(
const WebURLRequest& request,
ResourceLoaderBridge::SyncLoadResponse* sync_load_response,
@@ -856,4 +865,9 @@ void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) {
context_->DidChangePriority(new_priority);
}
+blink::WebThreadedResourceProvider*
+WebURLLoaderImpl::createThreadedResourceProvider() {
+ return context_->CreateThreadedResourceProvider();
+}
+
} // namespace webkit_glue
« webkit/child/resource_loader_bridge.h ('K') | « webkit/child/weburlloader_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698