diff options
author | lzheng@chromium.org <lzheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-26 03:57:57 +0000 |
---|---|---|
committer | lzheng@chromium.org <lzheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-26 03:57:57 +0000 |
commit | 193b0b89b4b49f8e8eb985b8f1a16e3c8506ee66 (patch) | |
tree | 5c7fe26f96ac2654fbb9e47e6b54b2e1d6faa29a /webkit/glue/resource_loader_bridge.h | |
parent | e22fbfc7ddc9e6539d734f6d976f54eeca5111ec (diff) | |
download | chromium_src-193b0b89b4b49f8e8eb985b8f1a16e3c8506ee66.zip chromium_src-193b0b89b4b49f8e8eb985b8f1a16e3c8506ee66.tar.gz chromium_src-193b0b89b4b49f8e8eb985b8f1a16e3c8506ee66.tar.bz2 |
Add field trial stats for alternate_protocol. The histogram we collected are:
http stats when alternate protocol is available but npn was not negotiated (
which means not usng spdy), and when alternate is available AND spdy is used.
Noticable changes:
1. In http_network_transaction.cc, changed the logic that always parse
response from server for alternate protocol and remember that in
HttpAlternateProtocols strucuture. We need to remember this to collect
stats for servers with alternate protocol support but used http for.
2. In spdy_stream.cc, get rid of the response copy from spdy_stream. This
copy overwrites some early status in response set in http_network_transaction.
TEST=http_network_transaction_unittest.cc
BUG=46689
Review URL: http://codereview.chromium.org/2808010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/resource_loader_bridge.h')
-rw-r--r-- | webkit/glue/resource_loader_bridge.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/glue/resource_loader_bridge.h b/webkit/glue/resource_loader_bridge.h index 7c19af0..1d76625 100644 --- a/webkit/glue/resource_loader_bridge.h +++ b/webkit/glue/resource_loader_bridge.h @@ -128,6 +128,10 @@ class ResourceLoaderBridge { // True if the response was delivered after NPN is negotiated. bool was_npn_negotiated; + // True if response could use alternate protocol. However, browser will + // ignore the alternate protocol when spdy is not enabled on browser side. + bool was_alternate_protocol_available; + // True if the response was fetched via an explicit proxy (as opposed to a // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS. // Note: we cannot tell if a transparent proxy may have been involved. |