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 #include "chrome/common/page_load_metrics/page_load_timing.h" | 5 #include "chrome/common/page_load_metrics/page_load_timing.h" |
6 | 6 |
7 namespace page_load_metrics { | 7 namespace page_load_metrics { |
8 | 8 |
9 PageLoadTiming::PageLoadTiming() {} | 9 PageLoadTiming::PageLoadTiming() {} |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 first_layout == other.first_layout && | 21 first_layout == other.first_layout && |
22 first_paint == other.first_paint && | 22 first_paint == other.first_paint && |
23 first_text_paint == other.first_text_paint && | 23 first_text_paint == other.first_text_paint && |
24 first_image_paint == other.first_image_paint && | 24 first_image_paint == other.first_image_paint && |
25 first_contentful_paint == other.first_contentful_paint && | 25 first_contentful_paint == other.first_contentful_paint && |
26 first_meaningful_paint == other.first_meaningful_paint && | 26 first_meaningful_paint == other.first_meaningful_paint && |
27 parse_start == other.parse_start && parse_stop == other.parse_stop && | 27 parse_start == other.parse_start && parse_stop == other.parse_stop && |
28 parse_blocked_on_script_load_duration == | 28 parse_blocked_on_script_load_duration == |
29 other.parse_blocked_on_script_load_duration && | 29 other.parse_blocked_on_script_load_duration && |
30 parse_blocked_on_script_load_from_document_write_duration == | 30 parse_blocked_on_script_load_from_document_write_duration == |
31 other.parse_blocked_on_script_load_from_document_write_duration; | 31 other.parse_blocked_on_script_load_from_document_write_duration && |
| 32 parse_blocked_on_script_execution_duration == |
| 33 other.parse_blocked_on_script_execution_duration && |
| 34 parse_blocked_on_script_execution_from_document_write_duration == |
| 35 other |
| 36 .parse_blocked_on_script_execution_from_document_write_duration
; |
32 } | 37 } |
33 | 38 |
34 bool PageLoadTiming::IsEmpty() const { | 39 bool PageLoadTiming::IsEmpty() const { |
35 return navigation_start.is_null() && !response_start && | 40 return navigation_start.is_null() && !response_start && |
36 !dom_content_loaded_event_start && !load_event_start && | 41 !dom_content_loaded_event_start && !load_event_start && |
37 !first_layout && !first_paint && !first_text_paint && | 42 !first_layout && !first_paint && !first_text_paint && |
38 !first_image_paint && !first_contentful_paint && | 43 !first_image_paint && !first_contentful_paint && |
39 !first_meaningful_paint && !parse_start && !parse_stop && | 44 !first_meaningful_paint && !parse_start && !parse_stop && |
40 !parse_blocked_on_script_load_duration && | 45 !parse_blocked_on_script_load_duration && |
41 !parse_blocked_on_script_load_from_document_write_duration; | 46 !parse_blocked_on_script_load_from_document_write_duration && |
| 47 !parse_blocked_on_script_execution_duration && |
| 48 !parse_blocked_on_script_execution_from_document_write_duration; |
42 } | 49 } |
43 | 50 |
44 PageLoadMetadata::PageLoadMetadata() {} | 51 PageLoadMetadata::PageLoadMetadata() {} |
45 | 52 |
46 bool PageLoadMetadata::operator==(const PageLoadMetadata& other) const { | 53 bool PageLoadMetadata::operator==(const PageLoadMetadata& other) const { |
47 return behavior_flags == other.behavior_flags; | 54 return behavior_flags == other.behavior_flags; |
48 } | 55 } |
49 | 56 |
50 } // namespace page_load_metrics | 57 } // namespace page_load_metrics |
OLD | NEW |