diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-13 03:51:27 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-13 03:51:27 +0000 |
commit | 808957c05986a64232b7bb9c108ed43fa09d1fb7 (patch) | |
tree | db147c9aff6260db22ecb32a1d6e19b3bbf8e339 /net/http/http_response_info.h | |
parent | b351effce32f7ba0273d74b171e08d03683eb775 (diff) | |
download | chromium_src-808957c05986a64232b7bb9c108ed43fa09d1fb7.zip chromium_src-808957c05986a64232b7bb9c108ed43fa09d1fb7.tar.gz chromium_src-808957c05986a64232b7bb9c108ed43fa09d1fb7.tar.bz2 |
Add a ConnectionInfo enum which describes the kind of connection used to fetch a response. This will eventually be made visible in window.chrome.loadTimings().
Review URL: https://chromiumcodereview.appspot.com/12518020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187763 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_info.h')
-rw-r--r-- | net/http/http_response_info.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/http/http_response_info.h b/net/http/http_response_info.h index f5f1c24..c150e82 100644 --- a/net/http/http_response_info.h +++ b/net/http/http_response_info.h @@ -24,6 +24,17 @@ class SSLCertRequestInfo; class NET_EXPORT HttpResponseInfo { public: + // Describes the kind of connection used to fetch this response. + enum ConnectionInfo { + CONNECTION_INFO_UNKNOWN, + CONNECTION_INFO_HTTP1, + CONNECTION_INFO_SPDY2, + CONNECTION_INFO_SPDY3, + CONNECTION_INFO_SPDY3_1, + CONNECTION_INFO_QUIC1_SPDY3, + NUM_OF_CONNECTION_INFOS, + }; + HttpResponseInfo(); HttpResponseInfo(const HttpResponseInfo& rhs); ~HttpResponseInfo(); @@ -71,6 +82,9 @@ class NET_EXPORT HttpResponseInfo { // Protocol negotiated with the server. std::string npn_negotiated_protocol; + // The type of connection used for this response. + ConnectionInfo connection_info; + // The time at which the request was made that resulted in this response. // For cached responses, this is the last time the cache entry was validated. base::Time request_time; |