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 |