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

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, 10 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
Index: content/child/resource_dispatcher.h
diff --git a/content/child/resource_dispatcher.h b/content/child/resource_dispatcher.h
index d85087d4557b8e18dae76c012d341667a98e1748..bb2a190857bcfde3955c0540db1190d0b2e3b9c9 100644
--- a/content/child/resource_dispatcher.h
+++ b/content/child/resource_dispatcher.h
@@ -56,6 +56,12 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
// Cancels a request in the pending_requests_ list.
void CancelPendingRequest(int request_id);
+ // Stop sending ACKs back for received data packets.
+ void StopSendingDataACKs(int request_id);
+
+ // ACK a data packet.
+ void SendDataACK(int request_id);
+
IPC::Sender* message_sender() const {
return message_sender_;
}
@@ -67,6 +73,10 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
void DidChangePriority(int routing_id, int request_id,
net::RequestPriority new_priority);
+ // Construct a WebThreadedResourceProvider for passing back to Blink.
+ blink::WebThreadedResourceProvider* CreateThreadedResourceProvider(
+ int request_id);
+
// 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) {
@@ -113,6 +123,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
base::TimeTicks completion_time;
linked_ptr<base::SharedMemory> buffer;
int buffer_size;
+ bool send_data_acks;
};
typedef base::hash_map<int, PendingRequestInfo> PendingRequestList;
« no previous file with comments | « no previous file | content/child/resource_dispatcher.cc » ('j') | content/child/webthreadedresourceprovider_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698