DescriptionMojo: Refactor URLLoader interface.
This change simplifies the URLLoader interface, eliminating the URLLoaderClient interface. The URLResponse now includes the DataPipeConsumerHandle for the response body stream as well as information about a possible redirect response.
One nice thing about this change is that you can now pass around the URLResponsePtr without also having to pass around the DataPipeConsumerHandle for the response body stream.
This didn't enable me to eliminate ResponseDetails as I think that structure should include not only the URLResponse but also the URLLoader used to generate the response. (That enables the LaunchInstance to get destroyed immediately after delegating the response to the handler app as it no longer needs to stick around to keep the URLLoader alive.) The recipient of the URLLoader might be interested in calling the new QueryStatus method to find out more information about the URL load (e.g., Blink wants to know the encoded size of a response body, which may not be available at the time when response headers are received).
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282535
Patch Set 1 #Patch Set 2 : snapshot #Patch Set 3 : snapshot #
Total comments: 5
Patch Set 4 : fixes per review #Messages
Total messages: 8 (0 generated)
|