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 #include "components/page_load_metrics/common/page_load_timing.h" |
| 6 |
| 7 namespace page_load_metrics { |
| 8 |
| 9 PageLoadTiming::PageLoadTiming() {} |
| 10 |
| 11 PageLoadTiming::~PageLoadTiming() {} |
| 12 |
| 13 bool PageLoadTiming::operator==(const PageLoadTiming& other) const { |
| 14 return navigation_start == other.navigation_start && |
| 15 response_start == other.response_start && |
| 16 dom_content_loaded_event_start == |
| 17 other.dom_content_loaded_event_start && |
| 18 load_event_start == other.load_event_start && |
| 19 first_layout == other.first_layout; |
| 20 } |
| 21 |
| 22 bool PageLoadTiming::IsEmpty() const { |
| 23 return navigation_start.is_null() && response_start.is_zero() && |
| 24 dom_content_loaded_event_start.is_zero() && |
| 25 load_event_start.is_zero() && first_layout.is_zero(); |
| 26 } |
| 27 |
| 28 } // namespace page_load_metrics |
OLD | NEW |