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

Unified Diff: chrome/common/page_load_metrics/page_load_timing_fields.h

Issue 2199443002: Move PageLoadTiming TimeDelta fields to a common header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove dom_loading Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/page_load_metrics/page_load_timing_fields.h
diff --git a/chrome/common/page_load_metrics/page_load_timing_fields.h b/chrome/common/page_load_metrics/page_load_timing_fields.h
new file mode 100644
index 0000000000000000000000000000000000000000..d4c335000fd2121a00c84749181f2edb8b09bd7f
--- /dev/null
+++ b/chrome/common/page_load_metrics/page_load_timing_fields.h
@@ -0,0 +1,48 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// All TimeDeltas are relative to navigation_start
+
+// Time that the first byte of the response is received.
+PAGE_LOAD_TIMING_TIME_DELTA_FIELD(response_start)
+
+// Time immediately before the DOMContentLoaded event is fired.
+PAGE_LOAD_TIMING_TIME_DELTA_FIELD(dom_content_loaded_event_start)
+
+// Time immediately before the load event is fired.
+PAGE_LOAD_TIMING_TIME_DELTA_FIELD(load_event_start)
+
+// Time when the first layout is completed.
+PAGE_LOAD_TIMING_TIME_DELTA_FIELD(first_layout)
+
+// Time when the first paint is performed.
+PAGE_LOAD_TIMING_TIME_DELTA_FIELD(first_paint)
+// Time when the first non-blank text is painted.
+PAGE_LOAD_TIMING_TIME_DELTA_FIELD(first_text_paint)
+// Time when the first image is painted.
+PAGE_LOAD_TIMING_TIME_DELTA_FIELD(first_image_paint)
+// Time when the first contentful thing (image, text, etc.) is painted.
+PAGE_LOAD_TIMING_TIME_DELTA_FIELD(first_contentful_paint)
+
+// Time that the document's parser started and stopped parsing main resource
+// content.
+PAGE_LOAD_TIMING_TIME_DELTA_FIELD(parse_start)
+PAGE_LOAD_TIMING_TIME_DELTA_FIELD(parse_stop)
+
+// Sum of times when the parser is blocked waiting on the load of a script.
+// This duration takes place between parser_start and parser_stop, and thus
+// must be less than or equal to parser_stop - parser_start. Note that this
+// value may be updated multiple times during the period between parse_start
+// and parse_stop.
+PAGE_LOAD_TIMING_TIME_DELTA_FIELD(parse_blocked_on_script_load_duration)
+
+// Sum of times when the parser is blocked waiting on the load of a script
+// that was inserted from document.write. This duration must be less than or
+// equal to parse_blocked_on_script_load_duration. Note that this value may be
+// updated multiple times during the period between parse_start and
+// parse_stop. Note that some uncommon cases where scripts are loaded via
+// document.write are not currently covered by this field. See crbug/600711
+// for details.
+PAGE_LOAD_TIMING_TIME_DELTA_FIELD(
+ parse_blocked_on_script_load_from_document_write_duration)
« no previous file with comments | « chrome/common/page_load_metrics/page_load_timing.cc ('k') | chrome/common/page_load_metrics/page_load_timing_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698