forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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}
- Loading branch information
1 parent
eb39631
commit 8cc2e7e
Showing
12 changed files
with
138 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.