Send blob request body when NetS13nServiceWorker w/o NetworkService
Request bodies may be a blob if NetworkService is disabled. We need to plumb it to a service worker world if we ship NetS13nSW without NetworkService. After this CL, there are three cases of how to send the request body to the service worker's fetch event. (A) NetworkService is on In this case, blobs should be passed as a data pipe. Data pipes will be included by a network::ResourceRequestBody. (B) NetworkService is off and ServiceWorkerServicification is on Blobs should be passed as a blink::mojom::BlobPtrs, but network::ResourceRequestBody cannot contain the blink::mojom::BlobPtrs. Instead, the BlobPtrs are passed as a parameter of DispatchFetchEventParams separately. (C) NetworkService and ServiceWorkerServicification are off All request bodies are passed as a blob. The information of the blob is passed as three parameters of DispatchFetchEventParams. Bug: 830292 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo Change-Id: I36eb0e08e80ae9feb5af926af4b97757607c1950 Reviewed-on: https://chromium-review.googlesource.com/1046426 Commit-Queue: Makoto Shimazu <shimazu@chromium.org> Reviewed-by:Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Daniel Murphy <dmurph@chromium.org> Cr-Commit-Position: refs/heads/master@{#561373}
Showing
Please register or sign in to comment