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

Unified Diff: webkit/child/resource_loader_bridge.h

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: Leak fix 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
« content/child/threadeddataprovider.cc ('K') | « content/content_child.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/child/resource_loader_bridge.h
diff --git a/webkit/child/resource_loader_bridge.h b/webkit/child/resource_loader_bridge.h
index 75323867b2c73e78f4eb73fdf29d2a1e47778087..2502c5215adcede36e2bedff294b2896dee499c5 100644
--- a/webkit/child/resource_loader_bridge.h
+++ b/webkit/child/resource_loader_bridge.h
@@ -33,6 +33,10 @@
#include "webkit/common/resource_response_info.h"
#include "webkit/common/resource_type.h"
+namespace blink {
+class WebThreadedDataReceiver;
+}
+
// TODO(pilgrim) remove this once resource loader is moved to content
// http://crbug.com/338338
namespace content {
@@ -217,6 +221,11 @@ class ResourceLoaderBridge {
// call to the Start method.
virtual void DidChangePriority(net::RequestPriority new_priority) = 0;
+ // Call this method to attach a data receiver which will receive resource data
+ // on its own thread.
+ virtual bool AttachThreadedDataReceiver(
+ blink::WebThreadedDataReceiver* threadedDataReceiver) = 0;
darin (slow to review) 2014/03/19 03:51:28 nit: threaded_data_receiver
+
// Call this method to load the resource synchronously (i.e., in one shot).
// This is an alternative to the Start method. Be warned that this method
// will block the calling thread until the resource is fully downloaded or an
« content/child/threadeddataprovider.cc ('K') | « content/content_child.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698