From e25e955817c9d6b9356e815d9f0c9948669fce95 Mon Sep 17 00:00:00 2001 From: "pfeldman@chromium.org" Date: Fri, 16 Jul 2010 08:25:41 +0000 Subject: DevTools & WebTiming : Migrate from PassiveLogCollector to dedicated LoadTimingObserver. Review URL: http://codereview.chromium.org/2909016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52634 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/weburlloader_impl.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'webkit/glue/weburlloader_impl.cc') diff --git a/webkit/glue/weburlloader_impl.cc b/webkit/glue/weburlloader_impl.cc index 8a09562..f235734 100644 --- a/webkit/glue/weburlloader_impl.cc +++ b/webkit/glue/weburlloader_impl.cc @@ -173,13 +173,15 @@ void PopulateURLResponse( response->setSecurityInfo(info.security_info); response->setAppCacheID(info.appcache_id); response->setAppCacheManifestURL(info.appcache_manifest_url); - response->setWasCached(info.request_time > info.response_time); + response->setWasCached(!info.load_timing.base_time.is_null() && + info.response_time < info.load_timing.base_time); response->setWasFetchedViaSPDY(info.was_fetched_via_spdy); response->setWasNpnNegotiated(info.was_npn_negotiated); response->setWasAlternateProtocolAvailable( info.was_alternate_protocol_available); response->setWasFetchedViaProxy(info.was_fetched_via_proxy); response->setConnectionID(info.connection_id); + response->setConnectionReused(info.connection_reused); WebURLLoadTiming timing; timing.initialize(); -- cgit v1.1