Make a deep copy of ResourceResponseHead to send NavigationPreload info to DevTools
HttpRawRequestResponseInfo in ResourceResponseInfo is not thread safe. So if the shared ResourceResponseInfo is deleted on the UI thread, DCHECK(CalledOnValidSequence()) in RefCountedBase::Release() fails. To avoid this, this CL makes a deep copy of ResourceResponseHead before passing it cross-thread. This CL also introduces |devtools_enabled_| in DelegatingURLLoaderClient to avoid unnecessary operations. Bug: 836680 Change-Id: I5cee9b2da8b6183b660e8fc6375d9ee7ab2da343 Reviewed-on: https://chromium-review.googlesource.com/1027390Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Tsuyoshi Horo <horo@chromium.org> Cr-Commit-Position: refs/heads/master@{#553505}
Showing
Please register or sign in to comment