Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Unified Diff: net/spdy/spdy_http_stream.cc

Issue 13845012: [SPDY] Add flag and about:flags entry for SPDY/4 alpha 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | net/spdy/spdy_network_transaction_spdy3_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_http_stream.cc
diff --git a/net/spdy/spdy_http_stream.cc b/net/spdy/spdy_http_stream.cc
index 35965c0fc0fd4f646342c4150746fb9a7d237dc2..5258d9fe94ccb4c913db3326afd3b5132b5cec00 100644
--- a/net/spdy/spdy_http_stream.cc
+++ b/net/spdy/spdy_http_stream.cc
@@ -21,6 +21,7 @@
#include "net/http/http_response_info.h"
#include "net/spdy/spdy_header_block.h"
#include "net/spdy/spdy_http_utils.h"
+#include "net/spdy/spdy_protocol.h"
#include "net/spdy/spdy_session.h"
namespace net {
@@ -408,12 +409,15 @@ int SpdyHttpStream::OnResponseReceived(const SpdyHeaderBlock& response,
SSLClientSocket::NextProtoToString(protocol_negotiated);
response_info_->request_time = stream_->GetRequestTime();
switch (spdy_session_->GetProtocolVersion()) {
- case 2:
+ case kSpdyVersion2:
response_info_->connection_info = HttpResponseInfo::CONNECTION_INFO_SPDY2;
break;
- case 3:
+ case kSpdyVersion3:
response_info_->connection_info = HttpResponseInfo::CONNECTION_INFO_SPDY3;
break;
+ case kSpdyVersion4:
+ response_info_->connection_info = HttpResponseInfo::CONNECTION_INFO_SPDY4;
+ break;
default:
NOTREACHED();
}
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | net/spdy/spdy_network_transaction_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698