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

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: 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..7aba09b01e2888e121f5b5484b573d0dc2dd0221 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 request is about to begin its
+ // first network request.
+ void AboutToBeginNavigation(base::TimeTicks timestamp);
+
private:
base::WeakPtr<NavigationURLLoaderImpl> loader_;
NavigationResourceHandler* resource_handler_;

Powered by Google App Engine
This is Rietveld 408576698