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

Unified Diff: net/base/load_timing_info.h

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: Incorporate the review Created 6 years, 4 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
Index: net/base/load_timing_info.h
diff --git a/net/base/load_timing_info.h b/net/base/load_timing_info.h
index 00dbabf55dc2a77e09f5395ad9f487770392505a..31a17351d65f59bf18769b39e97ac334eed5a4ac 100644
--- a/net/base/load_timing_info.h
+++ b/net/base/load_timing_info.h
@@ -91,6 +91,17 @@ struct NET_EXPORT LoadTimingInfo {
base::TimeTicks ssl_end;
};
+ // Contains the timing of ServiceWorker.
+ // These are all set by ServiceWrokerURLRequestJob.
+ struct NET_EXPORT_PRIVATE ServiceWorkerTiming {
mmenke 2014/09/02 19:10:43 It's a layering violation for net/ to know about S
shimazu 2014/09/04 03:32:41 Thanks for your comment, and I tried the implement
+ ServiceWorkerTiming();
+ ~ServiceWorkerTiming();
+
+ base::TimeTicks fetch_start;
+ base::TimeTicks fetch_ready;
+ base::TimeTicks fetch_end;
+ };
+
LoadTimingInfo();
~LoadTimingInfo();
@@ -127,6 +138,7 @@ struct NET_EXPORT LoadTimingInfo {
base::TimeTicks proxy_resolve_end;
ConnectTiming connect_timing;
+ ServiceWorkerTiming serviceworker_timing;
// The time that sending HTTP request started / ended.
base::TimeTicks send_start;

Powered by Google App Engine
This is Rietveld 408576698