From 9fc38b3ac8e8c9cfad867a1177d5b295a7646b57 Mon Sep 17 00:00:00 2001 From: "mbelshe@google.com" Date: Mon, 11 Jan 2010 21:34:46 +0000 Subject: Enable JS detection of whether SPDY was used to load a web page. Augments the loadTimes() API with a new field, "wasFetchedViaSpdy". BUG=31615 TEST=flip_network_transaction_unittest Review URL: http://codereview.chromium.org/518039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35943 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/resource_loader_bridge.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'webkit/glue/resource_loader_bridge.h') diff --git a/webkit/glue/resource_loader_bridge.h b/webkit/glue/resource_loader_bridge.h index 95ed6ac..a1ede6c 100644 --- a/webkit/glue/resource_loader_bridge.h +++ b/webkit/glue/resource_loader_bridge.h @@ -121,6 +121,9 @@ class ResourceLoaderBridge { // The manifest url of the appcache this response was loaded from. // Note: this value is only populated for main resource requests. GURL appcache_manifest_url; + + // True if the response was delivered using SPDY. + bool was_fetched_via_spdy; }; // See the SyncLoad method declared below. (The name of this struct is not -- cgit v1.1