summaryrefslogtreecommitdiffstats
path: root/webkit/child
diff options
context:
space:
mode:
authoroysteine@chromium.org <oysteine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-07 08:48:29 +0000
committeroysteine@chromium.org <oysteine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-07 08:48:29 +0000
commitc29f10f1305b954d7629a05cf1cc59e56b482cf1 (patch)
tree5bcd58249f554dc1663bcaa72c3175e7c72c71d0 /webkit/child
parentc4338da09534fc29741412baa5f5d21761e31c00 (diff)
downloadchromium_src-c29f10f1305b954d7629a05cf1cc59e56b482cf1.zip
chromium_src-c29f10f1305b954d7629a05cf1cc59e56b482cf1.tar.gz
chromium_src-c29f10f1305b954d7629a05cf1cc59e56b482cf1.tar.bz2
Redirect HTML resource bytes directly to parser thread (Chrome side)
Blink side: https://codereview.chromium.org/100563004/ Note: This can't land until the Blink-side has landed. R=jamesr@chromium.org,jam@chromium.org BUG=277886 Review URL: https://codereview.chromium.org/109283006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275655 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/child')
-rw-r--r--webkit/child/resource_loader_bridge.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/webkit/child/resource_loader_bridge.h b/webkit/child/resource_loader_bridge.h
index 9b97aa3..1907758 100644
--- a/webkit/child/resource_loader_bridge.h
+++ b/webkit/child/resource_loader_bridge.h
@@ -21,6 +21,10 @@
#include "net/base/request_priority.h"
#include "webkit/child/webkit_child_export.h"
+namespace blink {
+class WebThreadedDataReceiver;
+}
+
// TODO(pilgrim) remove this once resource loader is moved to content
// http://crbug.com/338338
namespace content {
@@ -61,6 +65,11 @@ class ResourceLoaderBridge {
virtual void DidChangePriority(net::RequestPriority new_priority,
int intra_priority_value) = 0;
+ // Call this method to attach a data receiver which will receive resource data
+ // on its own thread.
+ virtual bool AttachThreadedDataReceiver(
+ blink::WebThreadedDataReceiver* threaded_data_receiver) = 0;
+
// 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