Add navigations histograms in the ResourceHandler.
Here "ResourceHandler" refers to the NavigationResourceHandler or the
MojoAsyncResourceHandler depending on whether NavigationMojoResponse is
enabled or not.
It adds two histograms:
* Navigation.ResourceHandler.ResponseStartedUntilProceedWithResponse
* Navigation.ResourceHandder.ProceedWithResponseUntilStartLoadingResponseBody.
It records the time delta between these 3 events.
1) OnResponseStarted().
2) ProceedWithResponse().
3) OnReadCompleted() is called for the first time.
Bug: 705744
Change-Id: I10e26016df13b9f9a7c0687774986f8775ce59c3
Reviewed-on: https://chromium-review.googlesource.com/937516
Commit-Queue: Ilya Sherman <[email protected]>
Reviewed-by: Ilya Sherman <[email protected]>
Reviewed-by: John Abd-El-Malek <[email protected]>
Cr-Commit-Position: refs/heads/master@{#539982}
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index fa9f1c7..08add00 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -985,6 +985,8 @@
"loader/mime_sniffing_resource_handler.h",
"loader/mojo_async_resource_handler.cc",
"loader/mojo_async_resource_handler.h",
+ "loader/navigation_metrics.cc",
+ "loader/navigation_metrics.h",
"loader/navigation_resource_handler.cc",
"loader/navigation_resource_handler.h",
"loader/navigation_url_loader.cc",