summaryrefslogtreecommitdiffstats
path: root/content/browser/loader/navigation_url_loader_impl.h
diff options
context:
space:
mode:
authorcarlosk <carlosk@chromium.org>2015-02-04 03:53:59 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-04 11:54:42 +0000
commit947ebfb68a862ca468835c1a11e2d16b44484120 (patch)
tree72bd6df7568a698ed3e88b071365f8b2c5f3ba3e /content/browser/loader/navigation_url_loader_impl.h
parentf57c61952870c6027dbf220eff8b2d703bfed3c8 (diff)
downloadchromium_src-947ebfb68a862ca468835c1a11e2d16b44484120.zip
chromium_src-947ebfb68a862ca468835c1a11e2d16b44484120.tar.gz
chromium_src-947ebfb68a862ca468835c1a11e2d16b44484120.tar.bz2
New TimeToURLJobStart* navigation metrics now work with PlzNavigate.
They weren't being properly reported before (the report happened later than it should) but now there's two different reporting points for current navigation and for when PlzNavigate is enabled. BUG=416877 Review URL: https://codereview.chromium.org/874353003 Cr-Commit-Position: refs/heads/master@{#314542}
Diffstat (limited to 'content/browser/loader/navigation_url_loader_impl.h')
-rw-r--r--content/browser/loader/navigation_url_loader_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/loader/navigation_url_loader_impl.h b/content/browser/loader/navigation_url_loader_impl.h
index ecfd238..7dba118 100644
--- a/content/browser/loader/navigation_url_loader_impl.h
+++ b/content/browser/loader/navigation_url_loader_impl.h
@@ -9,6 +9,7 @@
#include "base/memory/ref_counted.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.h"
namespace net {
@@ -50,6 +51,10 @@ class NavigationURLLoaderImpl : public NavigationURLLoader {
// Notifies the delegate the request failed to return a response.
void NotifyRequestFailed(int net_error);
+ // Notifies the delegate the begin navigation request was handled and a
+ // potential first network request is about to be made.
+ void NotifyRequestStarted(base::TimeTicks timestamp);
+
NavigationURLLoaderDelegate* delegate_;
// |core_| is deleted on the IO thread in a subsequent task when the