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

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

Issue 1312213010: PageLoadMetrics renderer and browser implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Instrumented NavigationHandle for IsSamePage, fixed broken logic and 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 #ifndef COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_
6 #define COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_
7
8 #include "base/time/time.h"
9
10 namespace blink {
11 class WebPerformance;
12 }
13
14 namespace page_load_metrics {
15
16 // PageLoadTiming contains timing metrics associated with a page load. Many of
17 // the metrics here are based on the Navigation Timing spec:
18 // http://www.w3.org/TR/navigation-timing/.
Bryan McQuade 2015/09/04 20:53:18 let's add a short comment to note that all TimeDel
Charlie Harrison 2015/09/08 23:05:15 Done.
19 struct PageLoadTiming {
20 public:
21 PageLoadTiming();
22 PageLoadTiming(const blink::WebPerformance&);
23 ~PageLoadTiming();
24
25 bool operator==(const PageLoadTiming& other) const;
26
27 bool IsEmpty() const;
28
29 // Time that the navigation for the associated page was initiated.
30 base::Time navigation_start;
31
32 // Time that the first byte of the response is received.
33 base::TimeDelta response_start;
34
35 // Time immediately before the DOMContentLoaded event is fired.
36 base::TimeDelta dom_content_loaded_event_start;
37
38 // Time immediately before the load event is fired.
39 base::TimeDelta load_event_start;
40
41 // Time when the first layout is completed.
42 base::TimeDelta first_layout;
43
44 // If you add additional members, also be sure to update operator== and
Bryan McQuade 2015/09/04 20:53:18 should add mention to update IsEmpty as well
Charlie Harrison 2015/09/08 23:05:15 Done.
45 // page_load_metrics_messages.h
46 };
47
48 } // namespace page_load_metrics
49
50 #endif // COMPONENTS_PAGE_LOAD_METRICS_COMMON_PAGE_LOAD_TIMING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698