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

Unified Diff: content/child/resource_dispatcher.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: 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
« no previous file with comments | « no previous file | content/child/resource_dispatcher.cc » ('j') | content/child/resource_dispatcher.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.h
diff --git a/content/child/resource_dispatcher.h b/content/child/resource_dispatcher.h
index 4d8f7867797fd37bc0a1afac4a524cc04815a0e0..7be2ef95fe7e57abc11f0e1ee52e976d546fb0a6 100644
--- a/content/child/resource_dispatcher.h
+++ b/content/child/resource_dispatcher.h
@@ -26,6 +26,7 @@ namespace content {
class ResourceDispatcherDelegate;
struct ResourceResponseHead;
struct SiteIsolationResponseMetaData;
+class ThreadedDataProvider;
darin (slow to review) 2014/03/31 17:00:01 nit: "class" before "struct"
// This class serves as a communication interface between the
// ResourceDispatcherHost in the browser process and the ResourceLoaderBridge in
@@ -70,6 +71,11 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
void DidChangePriority(int routing_id, int request_id,
net::RequestPriority new_priority);
+ // The provided data receiver will receive incoming resource data rather
+ // than the resource bridge.
+ bool AttachThreadedDataReceiver(
+ int request_id, blink::WebThreadedDataReceiver* threaded_data_receiver);
+
// This does not take ownership of the delegate. It is expected that the
// delegate have a longer lifetime than the ResourceDispatcher.
void set_delegate(ResourceDispatcherDelegate* delegate) {
@@ -97,6 +103,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
~PendingRequestInfo();
webkit_glue::ResourceLoaderBridge::Peer* peer;
+ ThreadedDataProvider* threaded_data_provider;
ResourceType::Type resource_type;
// The PID of the original process which issued this request. This gets
// non-zero only for a request proxied by another renderer, particularly
« no previous file with comments | « no previous file | content/child/resource_dispatcher.cc » ('j') | content/child/resource_dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698