Service Worker: Prepare for connecting Mojo for FetchEventWorkerTiming in worker
This patch is a part of FetchEvent WorkerTiming patches. This feature enables a service worker to attach PerformanceMark/PerformanceMeasure timings to a request during the fetch event handler. The timings will then be exposed to the page using blink::PerformanceResourceTiming. This patch prepares for passing a Mojo pending receiver for WorkerTimingContainer to blink::PerformanceResourceTiming. In order to identify a Mojo receiver corresponding to a FetchEvent, WebWorkerFetchContextImpl has a map from |request_id| to a pending receiver. This patch adds a method to take a Mojo pending receiver from content::WebWorkerFetchContextImpl. It's used to pass Mojo pending receivers to blink::PerformanceResourceTiming in later patches. Explainer : https://github.com/wanderview/fetchevent-worker-timing/blob/master/explainer.md Design doc: https://docs.google.com/document/d/1-ebnv7OFiVd3k2-jbtQGO5s3BKHIp7lRx3ujhgNKvB0 Bug: 900700 Change-Id: I3d1119362b2eabbce4df1d709f392a87ba42cc18 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1924343 Commit-Queue: Yuta Kasai <yutakasai@google.com> Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by:
Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Makoto Shimazu <shimazu@chromium.org> Cr-Commit-Position: refs/heads/master@{#719077}
Showing
Please register or sign in to comment