Chromium Code Reviews
DescriptionMake WebURLLoader capable of retaining received buffers.
In order to implement backpressure on resource loading, this CL
makes WebURLLoader capable of retaining received buffers. In the
current implementation, ResourceDispatcher takes care of the buffer
lifetime in OnReceivedData. With this CL, it passes a ReceivedData
object that contains payload, length and encoded_length. The difference
is that a ReceivedData object keeps payload valid while it is alive,
so we can store the buffer if we like (with care, of course).
This CL does not change the behavior, except one: it replaces a possible
use-after-free in ResourceDispatcher::OnReceivedData when using
|alternative_data| with |threaded_data_provider| with an incorrect
, but safe operation.
BUG=480746
Committed: https://crrev.com/65d393906dd7532c51bbb70c9c181eae3b1e1758
Cr-Commit-Position: refs/heads/master@{#332512}
Committed: https://crrev.com/f0a364eade26aa3c977fc9ce94a738dd4796ac06
Cr-Commit-Position: refs/heads/master@{#332554}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #
Total comments: 4
Patch Set 7 : #
Total comments: 4
Patch Set 8 : #Patch Set 9 : #Patch Set 10 : #Patch Set 11 : #Patch Set 12 : #Patch Set 13 : rebase & style fix #
Total comments: 8
Patch Set 14 : #
Total comments: 8
Patch Set 15 : #
Total comments: 10
Patch Set 16 : #Patch Set 17 : #Patch Set 18 : #
Total comments: 6
Patch Set 19 : #Patch Set 20 : #Messages
Total messages: 53 (16 generated)
|