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

Unified Diff: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc

Issue 2624283004: Associate a main resource request with its PageLoadTracker. (Closed)
Patch Set: fix comment Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/page_load_metrics/metrics_navigation_throttle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
diff --git a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
index 957154f4d69a2df735020f06a9c0e7b5ab82b5a3..154f28f0fc415a463a836944ad95249484fa5bc8 100644
--- a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
+++ b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
@@ -353,6 +353,7 @@ void LogMainFrameMetricsOnUIThread(const GURL& url,
void NotifyUIThreadOfRequestComplete(
const content::ResourceRequestInfo::WebContentsGetter& web_contents_getter,
const GURL& url,
+ const content::GlobalRequestID& request_id,
ResourceType resource_type,
bool was_cached,
bool used_data_reduction_proxy,
@@ -377,8 +378,8 @@ void NotifyUIThreadOfRequestComplete(
web_contents);
if (metrics_observer) {
metrics_observer->OnRequestComplete(
- resource_type, was_cached, used_data_reduction_proxy, raw_body_bytes,
- original_content_length, request_creation_time);
+ request_id, resource_type, was_cached, used_data_reduction_proxy,
+ raw_body_bytes, original_content_length, request_creation_time);
}
}
@@ -847,9 +848,9 @@ void ChromeResourceDispatcherHostDelegate::RequestComplete(
BrowserThread::UI, FROM_HERE,
base::Bind(&NotifyUIThreadOfRequestComplete,
info->GetWebContentsGetterForRequest(), url_request->url(),
- info->GetResourceType(), url_request->was_cached(),
- used_data_reduction_proxy, net_error,
- url_request->GetTotalReceivedBytes(),
+ info->GetGlobalRequestID(), info->GetResourceType(),
+ url_request->was_cached(), used_data_reduction_proxy,
+ net_error, url_request->GetTotalReceivedBytes(),
url_request->GetRawBodyBytes(), original_content_length,
url_request->creation_time(),
base::TimeTicks::Now() - url_request->creation_time()));
« no previous file with comments | « no previous file | chrome/browser/page_load_metrics/metrics_navigation_throttle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698