Chromium Code Reviews
Description[ServiceWorker] Use BodyStreamBuffer as the body data of the Response object.
Currently we use BlobDataHandle as the body data of Request and Response object.
BlobDataHandle can handle only static data. It can't handle progressive data.
We will use BodyStreamBuffer for Response objects which will be created in FetchManager to support progressive loading.
In current implementation when Response.clone() is called, FetchResponseData object will be shared between the responses.
But this cl changes this behavior to "tee" the stream.
Response.clone() will create two FetchResponseData with new BodyStreamBuffers, and StreamTeePump will pump up the data from original BodyStreamBuffer to the two new BodyStreamBuffers.
This change depends on https://codereview.chromium.org/787793002/.
BUG=436424
TEST=webkit_unit_tests --gtest_filter=ServiceWorkerResponseTest.*
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187114
Patch Set 1 : #
Total comments: 3
Patch Set 2 : introduced internalBlobDataHandle(), internalBuffer() and internalContentType() to Response and FetchResponseData #
Total comments: 6
Patch Set 3 : incorporated yhirano's comment #
Total comments: 17
Patch Set 4 : #Patch Set 5 : add comment #
Total comments: 8
Patch Set 6 : #
Messages
Total messages: 19 (6 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||