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

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

Issue 2930583002: Add Foreground-to-FirstMeaningfulPaint histogram (Closed)
Patch Set: add FCP variant Created 3 years, 6 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/browser/page_load_metrics/page_load_metrics_util.h
diff --git a/chrome/browser/page_load_metrics/page_load_metrics_util.h b/chrome/browser/page_load_metrics/page_load_metrics_util.h
index a81c04320fb818834c3187b6d018ed0674264375..d181d62c492900a2c014f3fa377f07c57d3126d8 100644
--- a/chrome/browser/page_load_metrics/page_load_metrics_util.h
+++ b/chrome/browser/page_load_metrics/page_load_metrics_util.h
@@ -105,6 +105,15 @@ bool WasStartedInForegroundOptionalEventInForeground(
const base::Optional<base::TimeDelta>& event,
const PageLoadExtraInfo& info);
+// Returns true if:
+// - We have timing information for the event.
+// - The page load started in the background.
+// - Moved to the foreground prior to the event.
+// - Not moved back to the background prior to the event.
+bool WasStartedInBackgroundOptionalEventInForeground(
+ const base::Optional<base::TimeDelta>& event,
+ const PageLoadExtraInfo& info);
+
PageAbortInfo GetPageAbortInfo(const PageLoadExtraInfo& info);
// Get the duration of time that the page spent in the foreground, from

Powered by Google App Engine
This is Rietveld 408576698