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 "components/page_load_metrics/common/page_load_timing.h" | 5 #include "components/page_load_metrics/common/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 20 matching lines...) Expand all Loading... |
31 bool PageLoadTiming::IsEmpty() const { | 31 bool PageLoadTiming::IsEmpty() const { |
32 return navigation_start.is_null() && response_start.is_zero() && | 32 return navigation_start.is_null() && response_start.is_zero() && |
33 dom_loading.is_zero() && dom_content_loaded_event_start.is_zero() && | 33 dom_loading.is_zero() && dom_content_loaded_event_start.is_zero() && |
34 load_event_start.is_zero() && first_layout.is_zero() && | 34 load_event_start.is_zero() && first_layout.is_zero() && |
35 first_paint.is_zero() && first_text_paint.is_zero() && | 35 first_paint.is_zero() && first_text_paint.is_zero() && |
36 first_image_paint.is_zero() && parse_start.is_zero() && | 36 first_image_paint.is_zero() && parse_start.is_zero() && |
37 parse_stop.is_zero() && | 37 parse_stop.is_zero() && |
38 parse_blocked_on_script_load_duration.is_zero(); | 38 parse_blocked_on_script_load_duration.is_zero(); |
39 } | 39 } |
40 | 40 |
| 41 PageLoadMetadata::PageLoadMetadata() {} |
| 42 |
| 43 bool PageLoadMetadata::operator==(const PageLoadMetadata& other) const { |
| 44 return behavior_flags == other.behavior_flags; |
| 45 } |
| 46 |
41 } // namespace page_load_metrics | 47 } // namespace page_load_metrics |
OLD | NEW |