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

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

Issue 1918373002: Metrics for document.write script blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bryan's comment: Returning disallowFetch from shouldDisallowFetchForMainFrameScript Created 4 years, 7 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: 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 380c077d26357ae6db44339bbbdacfe9b45692b6..c79612e2a32672bf2b69be034c65cce48af2839d 100644
--- a/components/page_load_metrics/browser/page_load_metrics_util.h
+++ b/components/page_load_metrics/browser/page_load_metrics_util.h
@@ -28,6 +28,14 @@ struct PageLoadTiming;
bool WasStartedInForegroundEventInForeground(base::TimeDelta event,
const PageLoadExtraInfo& info);
+// Returns true if:
+// - Parse started and did not complete but the entire page load duration
+// happened in the foreground.
+// - Parse completed and happened entirely in the foreground.
+bool WasParseInForeground(base::TimeDelta parse_start,
+ base::TimeDelta parse_stop,
+ const PageLoadExtraInfo& info);
+
} // namespace page_load_metrics
#endif // COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698