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

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

Issue 874353003: New TimeToFirstURLJob* navigation metrics now work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated method names and comments. 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_impl_core.h
diff --git a/content/browser/loader/navigation_url_loader_impl_core.h b/content/browser/loader/navigation_url_loader_impl_core.h
index f31d3ccbdc3f2aa7ce4800da5c4245893f1ef361..f39171804b6edd212a334ee9dda719ac4846b0c5 100644
--- a/content/browser/loader/navigation_url_loader_impl_core.h
+++ b/content/browser/loader/navigation_url_loader_impl_core.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/time/time.h"
#include "content/browser/loader/navigation_url_loader_impl.h"
namespace net {
@@ -63,6 +64,10 @@ class NavigationURLLoaderImplCore {
// Notifies |loader_| on the UI thread that the request failed.
void NotifyRequestFailed(int net_error);
+ // Notifies |loader_| on the UI thread that a begin navigation request has
+ // just been handled, before its potential first network request was made.
+ void NavigationRequested(base::TimeTicks timestamp);
+
private:
base::WeakPtr<NavigationURLLoaderImpl> loader_;
NavigationResourceHandler* resource_handler_;

Powered by Google App Engine
This is Rietveld 408576698