| 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 | 368 |
| 369 base::TimeTicks page_end_time_; | 369 base::TimeTicks page_end_time_; |
| 370 | 370 |
| 371 // We record separate metrics for events that occur after a background, | 371 // We record separate metrics for events that occur after a background, |
| 372 // because metrics like layout/paint are delayed artificially | 372 // because metrics like layout/paint are delayed artificially |
| 373 // when they occur in the background. | 373 // when they occur in the background. |
| 374 base::TimeTicks background_time_; | 374 base::TimeTicks background_time_; |
| 375 base::TimeTicks foreground_time_; | 375 base::TimeTicks foreground_time_; |
| 376 bool started_in_foreground_; | 376 bool started_in_foreground_; |
| 377 | 377 |
| 378 PageLoadTiming timing_; | 378 mojo::StructPtr<PageLoadTiming> timing_; |
| 379 PageLoadMetadata main_frame_metadata_; | 379 PageLoadMetadata main_frame_metadata_; |
| 380 PageLoadMetadata child_frame_metadata_; | 380 PageLoadMetadata child_frame_metadata_; |
| 381 | 381 |
| 382 ui::PageTransition page_transition_; | 382 ui::PageTransition page_transition_; |
| 383 | 383 |
| 384 base::Optional<content::GlobalRequestID> navigation_request_id_; | 384 base::Optional<content::GlobalRequestID> navigation_request_id_; |
| 385 | 385 |
| 386 // Whether this page load was user initiated. | 386 // Whether this page load was user initiated. |
| 387 UserInitiatedInfo user_initiated_info_; | 387 UserInitiatedInfo user_initiated_info_; |
| 388 | 388 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 402 PageLoadMetricsEmbedderInterface* const embedder_interface_; | 402 PageLoadMetricsEmbedderInterface* const embedder_interface_; |
| 403 | 403 |
| 404 std::vector<std::unique_ptr<PageLoadMetricsObserver>> observers_; | 404 std::vector<std::unique_ptr<PageLoadMetricsObserver>> observers_; |
| 405 | 405 |
| 406 DISALLOW_COPY_AND_ASSIGN(PageLoadTracker); | 406 DISALLOW_COPY_AND_ASSIGN(PageLoadTracker); |
| 407 }; | 407 }; |
| 408 | 408 |
| 409 } // namespace page_load_metrics | 409 } // namespace page_load_metrics |
| 410 | 410 |
| 411 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ | 411 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ |
| OLD | NEW |