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

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: 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..8c8ee8cacd38767bf66065f0c32e4ee18798e0b6 100644
--- a/content/browser/loader/navigation_url_loader_delegate.h
+++ b/content/browser/loader/navigation_url_loader_delegate.h
@@ -39,6 +39,10 @@ class CONTENT_EXPORT NavigationURLLoaderDelegate {
// network error code for the failure.
virtual void OnRequestFailed(int net_error) = 0;
+ // Called right before the first navigation network request happens, providing
+ // the |timestamp| when that happened in the IO thread.
+ virtual void AboutToBeginNavigation(base::TimeTicks timestamp) = 0;
+
protected:
NavigationURLLoaderDelegate() {}
virtual ~NavigationURLLoaderDelegate() {}

Powered by Google App Engine
This is Rietveld 408576698