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

Unified Diff: content/browser/loader/navigation_url_loader_delegate.h

Issue 874353003: New TimeToFirstURLJob* navigation metrics now work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A couple minor changes Created 5 years, 11 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: content/browser/loader/navigation_url_loader_delegate.h
diff --git a/content/browser/loader/navigation_url_loader_delegate.h b/content/browser/loader/navigation_url_loader_delegate.h
index 199f48a2a984b238f4f2f0f49f287bcc88352a9f..4ea2c6b0d36bef178bf37627f6ece05e9e79ea8a 100644
--- a/content/browser/loader/navigation_url_loader_delegate.h
+++ b/content/browser/loader/navigation_url_loader_delegate.h
@@ -39,6 +39,12 @@ class CONTENT_EXPORT NavigationURLLoaderDelegate {
// network error code for the failure.
virtual void OnRequestFailed(int net_error) = 0;
+ // Called after the network request has begun on the IO thread at time
+ // |timestamp|. This is just a thread hop but is used to compare timing
+ // against the pre-PlzNavigate codepath which didn't start the network request
+ // until after the renderer was initialized.
+ virtual void OnRequestHandled(base::TimeTicks timestamp) = 0;
+
protected:
NavigationURLLoaderDelegate() {}
virtual ~NavigationURLLoaderDelegate() {}

Powered by Google App Engine
This is Rietveld 408576698