Chromium Code Reviews| 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_ |