| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ | 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ |
| 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ | 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 void MediaStartedPlaying( | 263 void MediaStartedPlaying( |
| 264 const content::WebContentsObserver::MediaPlayerInfo& video_type, | 264 const content::WebContentsObserver::MediaPlayerInfo& video_type, |
| 265 bool is_in_main_frame); | 265 bool is_in_main_frame); |
| 266 | 266 |
| 267 // Invoked on navigations where a navigation delay was added by the | 267 // Invoked on navigations where a navigation delay was added by the |
| 268 // DelayNavigationThrottle. This is a temporary method that will be removed | 268 // DelayNavigationThrottle. This is a temporary method that will be removed |
| 269 // once the experiment is complete. | 269 // once the experiment is complete. |
| 270 void OnNavigationDelayComplete(base::TimeDelta scheduled_delay, | 270 void OnNavigationDelayComplete(base::TimeDelta scheduled_delay, |
| 271 base::TimeDelta actual_delay); | 271 base::TimeDelta actual_delay); |
| 272 | 272 |
| 273 ukm::SourceId source_id() const { return source_id_; } |
| 274 |
| 273 private: | 275 private: |
| 274 // This function converts a TimeTicks value taken in the browser process | 276 // This function converts a TimeTicks value taken in the browser process |
| 275 // to navigation_start_ if: | 277 // to navigation_start_ if: |
| 276 // - base::TimeTicks is not comparable across processes because the clock | 278 // - base::TimeTicks is not comparable across processes because the clock |
| 277 // is not system wide monotonic. | 279 // is not system wide monotonic. |
| 278 // - *event_time < navigation_start_ | 280 // - *event_time < navigation_start_ |
| 279 void ClampBrowserTimestampIfInterProcessTimeTickSkew( | 281 void ClampBrowserTimestampIfInterProcessTimeTickSkew( |
| 280 base::TimeTicks* event_time); | 282 base::TimeTicks* event_time); |
| 281 | 283 |
| 282 void UpdatePageEndInternal(PageEndReason page_end_reason, | 284 void UpdatePageEndInternal(PageEndReason page_end_reason, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 PageLoadMetricsUpdateDispatcher metrics_update_dispatcher_; | 371 PageLoadMetricsUpdateDispatcher metrics_update_dispatcher_; |
| 370 | 372 |
| 371 const ukm::SourceId source_id_; | 373 const ukm::SourceId source_id_; |
| 372 | 374 |
| 373 DISALLOW_COPY_AND_ASSIGN(PageLoadTracker); | 375 DISALLOW_COPY_AND_ASSIGN(PageLoadTracker); |
| 374 }; | 376 }; |
| 375 | 377 |
| 376 } // namespace page_load_metrics | 378 } // namespace page_load_metrics |
| 377 | 379 |
| 378 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ | 380 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ |
| OLD | NEW |