Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2008)

Unified Diff: content/child/web_url_loader_impl.cc

Issue 515753003: Add ServiceWorker timing information on the popup panel in DevTools's Network tab (2/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index c7ccea02f52980afad7fc4f4d6d053b44c7187b2..291292fb264b7a432bc93a0528c4b4c7d4ef3f33 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -777,6 +777,13 @@ void WebURLLoaderImpl::PopulateURLResponse(const GURL& url,
if (!info.load_timing.receive_headers_end.is_null()) {
WebURLLoadTiming timing;
PopulateURLLoadTiming(info.load_timing, &timing);
+ const TimeTicks kNullTicks;
+ timing.setServiceWorkerFetchStart(
+ (info.service_worker_fetch_start - kNullTicks).InSecondsF());
+ timing.setServiceWorkerFetchReady(
+ (info.service_worker_fetch_ready - kNullTicks).InSecondsF());
+ timing.setServiceWorkerFetchEnd(
+ (info.service_worker_fetch_end - kNullTicks).InSecondsF());
response->setLoadTiming(timing);
}
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698