Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Side by Side Diff: components/page_load_metrics/common/page_load_timing.cc

Issue 1312213010: PageLoadMetrics renderer and browser implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Relax DCHECK constraints slightly for tests Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698