summaryrefslogtreecommitdiffstats
path: root/net/http/http_response_info.h
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-13 03:51:27 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-13 03:51:27 +0000
commit808957c05986a64232b7bb9c108ed43fa09d1fb7 (patch)
treedb147c9aff6260db22ecb32a1d6e19b3bbf8e339 /net/http/http_response_info.h
parentb351effce32f7ba0273d74b171e08d03683eb775 (diff)
downloadchromium_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.h14
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;