| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ | 5 #ifndef COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ |
| 6 #define COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ | 6 #define COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 | 9 |
| 10 namespace page_load_metrics { | 10 namespace page_load_metrics { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // Time that the document's parser started and stopped parsing main resource | 55 // Time that the document's parser started and stopped parsing main resource |
| 56 // content. | 56 // content. |
| 57 base::TimeDelta parse_start; | 57 base::TimeDelta parse_start; |
| 58 base::TimeDelta parse_stop; | 58 base::TimeDelta parse_stop; |
| 59 | 59 |
| 60 // Sum of times when the parser is blocked waiting on the load of a script. | 60 // Sum of times when the parser is blocked waiting on the load of a script. |
| 61 // This duration takes place between parser_start and parser_stop, and thus | 61 // This duration takes place between parser_start and parser_stop, and thus |
| 62 // must be less than or equal to parser_stop - parser_start. | 62 // must be less than or equal to parser_stop - parser_start. |
| 63 base::TimeDelta parse_blocked_on_script_load_duration; | 63 base::TimeDelta parse_blocked_on_script_load_duration; |
| 64 | 64 |
| 65 // Sum of times when the parser is blocked waiting on the load of a script |
| 66 // that was inserted from document.write. This duration must be less than or |
| 67 // equal to parse_blocked_on_script_load_duration. Note that some uncommon |
| 68 // cases where scripts are loaded via document.write are not currently covered |
| 69 // by this field. See crbug/600711 for details. |
| 70 base::TimeDelta parse_blocked_on_script_load_from_document_write_duration; |
| 71 |
| 65 // If you add additional members, also be sure to update operator==, | 72 // If you add additional members, also be sure to update operator==, |
| 66 // page_load_metrics_messages.h, and IsEmpty(). | 73 // page_load_metrics_messages.h, and IsEmpty(). |
| 67 }; | 74 }; |
| 68 | 75 |
| 69 } // namespace page_load_metrics | 76 } // namespace page_load_metrics |
| 70 | 77 |
| 71 #endif // COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ | 78 #endif // COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_ |
| OLD | NEW |