Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ | |
| 6 #define COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ | |
| 7 | |
| 8 #include "base/time/time.h" | |
| 9 | |
| 10 namespace page_load_metrics { | |
| 11 | |
| 12 // PageLoadTiming contains timing metrics associated with a page load. Many of | |
| 13 // the metrics here are based on the Navigation Timing spec: | |
| 14 // http://www.w3.org/TR/navigation-timing/. | |
| 15 struct PageLoadTiming { | |
| 16 public: | |
| 17 PageLoadTiming(); | |
| 18 ~PageLoadTiming(); | |
| 19 | |
| 20 bool operator==(const PageLoadTiming& other) const; | |
|
Randy Smith (Not in Mondays)
2015/08/26 19:11:48
I have no objection, but document why this is need
| |
| 21 | |
| 22 // Time that the navigation for the associated page was initiated. | |
| 23 base::Time navigation_start; | |
| 24 | |
| 25 // Time that the first byte of the response is received. | |
| 26 base::Time response_start; | |
| 27 | |
| 28 // Time immediately before the DOMContentLoaded event is fired. | |
| 29 base::Time dom_content_loaded_event_start; | |
| 30 | |
| 31 // Time immediately before the load event is fired. | |
| 32 base::Time load_event_start; | |
| 33 | |
| 34 // Time when the first layout is completed. | |
| 35 base::Time first_layout; | |
|
Randy Smith (Not in Mondays)
2015/08/26 19:11:48
As I understand it (please correct me if I'm wrong
| |
| 36 | |
| 37 // If you add additional members, also be sure to update operator== and | |
| 38 // page_load_metrics_messages.h | |
| 39 }; | |
| 40 | |
| 41 } // namespace page_load_metrics | |
| 42 | |
| 43 #endif // COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ | |
| OLD | NEW |