| Index: chrome/browser/page_load_metrics/metrics_web_contents_observer.h
|
| diff --git a/chrome/browser/page_load_metrics/metrics_web_contents_observer.h b/chrome/browser/page_load_metrics/metrics_web_contents_observer.h
|
| index 5b072f75d776cf392e66c0bb3bfeded269f4f222..1b153bbe4c1c98aa47013a6e841a6d23c12f0802 100644
|
| --- a/chrome/browser/page_load_metrics/metrics_web_contents_observer.h
|
| +++ b/chrome/browser/page_load_metrics/metrics_web_contents_observer.h
|
| @@ -183,7 +183,7 @@ class PageLoadTracker {
|
| // delta to when it was aborted. Note that only provisional loads can be
|
| // aborted with ABORT_OTHER. While this heuristic is coarse, it works better
|
| // and is simpler than other feasible methods. See https://goo.gl/WKRG98.
|
| - bool IsLikelyProvisionalAbort(base::TimeTicks abort_cause_time);
|
| + bool IsLikelyProvisionalAbort(base::TimeTicks abort_cause_time) const;
|
|
|
| bool MatchesOriginalNavigation(content::NavigationHandle* navigation_handle);
|
|
|
| @@ -197,6 +197,8 @@ class PageLoadTracker {
|
|
|
| PageLoadExtraInfo ComputePageLoadExtraInfo();
|
|
|
| + ui::PageTransition page_transition() const { return page_transition_; }
|
| +
|
| private:
|
| // This function converts a TimeTicks value taken in the browser process
|
| // to navigation_start_ if:
|
| @@ -248,6 +250,8 @@ class PageLoadTracker {
|
| PageLoadTiming timing_;
|
| PageLoadMetadata metadata_;
|
|
|
| + ui::PageTransition page_transition_;
|
| +
|
| // This is a subtle member. If a provisional load A gets aborted by
|
| // provisional load B, which gets aborted by C that eventually commits, then
|
| // there exists an abort chain of length 2, starting at A's navigation_start.
|
| @@ -288,8 +292,6 @@ class MetricsWebContentsObserver
|
| // content::WebContentsObserver implementation:
|
| bool OnMessageReceived(const IPC::Message& message,
|
| content::RenderFrameHost* render_frame_host) override;
|
| - void DidStartNavigation(
|
| - content::NavigationHandle* navigation_handle) override;
|
| void DidFinishNavigation(
|
| content::NavigationHandle* navigation_handle) override;
|
| void DidRedirectNavigation(
|
| @@ -302,6 +304,9 @@ class MetricsWebContentsObserver
|
| void RenderViewHostChanged(content::RenderViewHost* old_host,
|
| content::RenderViewHost* new_host) override;
|
|
|
| + // This method is forwarded from the MetricsNavigationThrottle.
|
| + void WillStartNavigationRequest(content::NavigationHandle* navigation_handle);
|
| +
|
| // This getter function is required for testing.
|
| const PageLoadExtraInfo GetPageLoadExtraInfoForCommittedLoad();
|
|
|
|
|