Description[Mojo-Loading] OnStartLoadingResponseBody should be called after OnReceiveResponse
In content::ResourceHandler, OnWillRead can be called before OnResponseStarted.
MojoAsyncResourceHandler calls OnStartLoadingResponseBody when
OnResponseStarted is called, and that means OnStartLoadingResponseBody can be
called before OnReceiveResponse.
That complicates clients' code. With this CL, it is guaranteed that
URLLoaderClient::OnStartLoadingResponseBody is called after
URLLoaderClient::OnReceiveResponse.
BUG=603396
Review-Url: https://codereview.chromium.org/2633123002
Cr-Commit-Position: refs/heads/master@{#444638}
Committed: https://chromium.googlesource.com/chromium/src/+/246883ff6add126d1f6482fe5f883a2d6a2b2525
Patch Set 1 #Patch Set 2 : fix #
Total comments: 8
Patch Set 3 : rebase & fix #Patch Set 4 : fix #Patch Set 5 : fix #
Total comments: 5
Patch Set 6 : fix #Messages
Total messages: 41 (29 generated)
|