Expose URLLoaderCompletionStatus in SimpleURLLoader
Adds a new method that returns the URLLoaderCompletionStatus from the URL Loader's OnComplete. This is needed since the completion status provides additional metrics needed to compute fetch duration and encoded body length which are used in https://chromium-review.googlesource.com/c/chromium/src/+/2463544. The returned completion status is Optional to account for cases where the URLLoader never starts, or gets an unexpected response from the network. Bug: 1136174 Change-Id: Ib956135f30ec738f85f22739372387b1093815fe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2468347 Commit-Queue: Robert Ogden <robertogden@chromium.org> Reviewed-by:Clark DuVall <cduvall@chromium.org> Cr-Commit-Position: refs/heads/master@{#816815}
Showing
This diff is collapsed.
Please register or sign in to comment