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

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 7 years 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: webkit/child/weburlloader_impl.cc
diff --git a/webkit/child/weburlloader_impl.cc b/webkit/child/weburlloader_impl.cc
index 9ecf69a883f1aad21dbb377b364796210b96cd36..22844bb0633b0e9c1019cb68ec3f6b2792fb58e5 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::WebParserResourceBridge* ConstructParserResourceBridge();
void Start(
const WebURLRequest& request,
ResourceLoaderBridge::SyncLoadResponse* sync_load_response,
@@ -247,7 +248,7 @@ class WebURLLoaderImpl::Context : public base::RefCounted<Context>,
bool was_ignored_by_handler,
const std::string& security_info,
const base::TimeTicks& completion_time) OVERRIDE;
-
+ virtual void OnParserResourceMessageFilterAdded() OVERRIDE;
private:
friend class base::RefCounted<Context>;
virtual ~Context() {}
@@ -300,6 +301,14 @@ void WebURLLoaderImpl::Context::DidChangePriority(
ConvertWebKitPriorityToNetPriority(new_priority));
}
+blink::WebParserResourceBridge*
+WebURLLoaderImpl::Context::ConstructParserResourceBridge() {
+ if (bridge_)
+ return bridge_->ConstructParserResourceBridge();
+
+ return NULL;
+}
+
void WebURLLoaderImpl::Context::Start(
const WebURLRequest& request,
ResourceLoaderBridge::SyncLoadResponse* sync_load_response,
@@ -626,6 +635,11 @@ void WebURLLoaderImpl::Context::OnCompletedRequest(
Release();
}
+void WebURLLoaderImpl::Context::OnParserResourceMessageFilterAdded() {
+ if (client_)
+ client_->didAddParserResourceMessageFilter();
+}
+
bool WebURLLoaderImpl::Context::CanHandleDataURL(const GURL& url) const {
DCHECK(url.SchemeIs("data"));
@@ -854,4 +868,9 @@ void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) {
context_->DidChangePriority(new_priority);
}
+blink::WebParserResourceBridge*
+WebURLLoaderImpl::constructParserResourceBridge() {
+ return context_->ConstructParserResourceBridge();
+}
+
} // namespace webkit_glue
« content/child/webparserresourcebridge_impl.cc ('K') | « webkit/child/weburlloader_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698