summaryrefslogtreecommitdiffstats
path: root/content/browser/loader/resource_dispatcher_host_impl.cc
diff options
context:
space:
mode:
authorjkarlin@chromium.org <jkarlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-14 14:59:01 +0000
committerjkarlin@chromium.org <jkarlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-14 14:59:01 +0000
commit3adcb41365be2ef2742678486cc3e7170b3f9e6b (patch)
tree0ddbe1836b5aed29b9bbf2027885d8b3499254ec /content/browser/loader/resource_dispatcher_host_impl.cc
parent7d5289ea56fd78ba53cde604f3e12784f7952626 (diff)
downloadchromium_src-3adcb41365be2ef2742678486cc3e7170b3f9e6b.zip
chromium_src-3adcb41365be2ef2742678486cc3e7170b3f9e6b.tar.gz
chromium_src-3adcb41365be2ef2742678486cc3e7170b3f9e6b.tar.bz2
Reports UMA data for bytes fetched over the network for used and
unused prerenders. It also reports on the total number of bytes fetched for that profile since the last prerender report. This gives us insight into the balance of used vs wasted prerenders. Understanding the ratio of wasted prerender bytes to total bytes gives us a better understanding of whether we need an option to disable prerender on mobile networks. BUG=334602 Review URL: https://codereview.chromium.org/160513002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251316 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/loader/resource_dispatcher_host_impl.cc')
-rw-r--r--content/browser/loader/resource_dispatcher_host_impl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index ab93adb..04772e1 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -785,6 +785,9 @@ void ResourceDispatcherHostImpl::DidFinishLoading(ResourceLoader* loader) {
-loader->request()->status().error());
}
+ if (delegate_)
+ delegate_->RequestComplete(loader->request());
+
// Destroy the ResourceLoader.
RemovePendingRequest(info->GetChildID(), info->GetRequestID());
}