commit | 1ab13f85efc9219f9b32d73f3c57f17af426c747 | [log] [tgz] |
---|---|---|
author | Leon Han <leon.han@intel.com> | Wed Dec 26 12:48:37 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Dec 26 12:48:37 2018 |
tree | 9f39356edf4bb0bdb8b6bb06c19d33cab4507598 | |
parent | 3711a8b085fe287276170d0c84a4af4297986d3c [diff] |
[OnionSoup] Remove DispatchFetchEventParams.request_body_blob_ptrs Previously, in case of S13nServiceWorker without NetworkService, to transfer those Blob elements of network::ResourceRequestBody when calling blink.mojom.ServiceWorker.DispatchFetchEvent(), additionally ServiceWorkerSubresourceLoader prepares an array of BlobPtrInfo for those Blob data and transfers it as DispatchFetchEventParams.request_body_blob_ptrs. Then ServiceWorkerContextClient gets it and puts it into a blink::WebHTTPBody as part of WebServiceWorkerRequest to enter Blink. However, we can see that DispatchFetchEventParams.request_body_blob_ptrs is unnecessary to be passed through the Mojo call, ServiceWorkerContextClient itself should be able to get these information from the received network::ResourceRequestBody. This CL lets ServiceWorkerContextClient do that and then removes DispatchFetchEventParams.request_body_blob_ptrs. crrev.com/c/1390323 relies on this CL to have ServiceWorkerContextClient get those BlobPtrInfos from a network::ResourceRequestBody sent by another fetch event dispatcher ServiceWorkerURLRequestJob. BUG=911930 TBR=thestig@chromium.org for trivial changes in base/threading/thread_restrictions.h Change-Id: I383732b60329a9cd7c4204c7fbeedff10eee1990 Reviewed-on: https://chromium-review.googlesource.com/c/1390263 Reviewed-by: Leon Han <leon.han@intel.com> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Leon Han <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#618924}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .