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

Unified Diff: components/page_load_metrics/browser/page_load_metrics_util.h

Issue 1476503004: [page_load_metrics] User Initiated Abort Tracking (Observer version) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new_observer
Patch Set: Created 5 years 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: components/page_load_metrics/browser/page_load_metrics_util.h
diff --git a/components/page_load_metrics/browser/page_load_metrics_util.h b/components/page_load_metrics/browser/page_load_metrics_util.h
index b5a569867db22bd488ace4ac2009a0f5f3b4a872..7be30f9d348623ccda478e1a6c4b2bec16ec0613 100644
--- a/components/page_load_metrics/browser/page_load_metrics_util.h
+++ b/components/page_load_metrics/browser/page_load_metrics_util.h
@@ -7,6 +7,7 @@
#include "base/metrics/histogram_macros.h"
#include "base/time/time.h"
+#include "components/page_load_metrics/browser/page_load_metrics_observer.h"
#define PAGE_LOAD_HISTOGRAM(name, sample) \
UMA_HISTOGRAM_CUSTOM_TIMES(name, sample, \
@@ -22,6 +23,10 @@ struct PageLoadTiming;
// Painting of a background color is not considered 'contentful'.
base::TimeDelta GetFirstContentfulPaint(const PageLoadTiming& timing);
+// Returns a TimeDelta which is infinity if we were never backgrounded. This is
+// a helper function to help with simpler metric comparisons.
+base::TimeDelta GetBackgroundDelta(const PageLoadExtraInfo& info);
kinuko 2015/12/09 04:57:51 nit: I feel the method name and comment are a bit
Charlie Harrison 2015/12/09 22:46:43 Good point. ricea is fixing this in his CL here ht
+
} // namespace page_load_metrics
#endif // COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698