Index: net/http/http_server_properties.cc |
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc |
index cc41ea86ad18279e951ac13b8f3dce214ee21a96..25725a8bd953e4c6ec6d3808316634af16e2a9bc 100644 |
--- a/net/http/http_server_properties.cc |
+++ b/net/http/http_server_properties.cc |
@@ -20,6 +20,7 @@ const char* const kAlternateProtocolStrings[] = { |
"npn-spdy/2", |
"npn-spdy/3", |
"npn-spdy/3.1", |
+ "npn-h2-14", // HTTP/2 draft-14. Called SPDY4 internally. |
"npn-h2-15", // HTTP/2 draft-15. Called SPDY4 internally. |
"quic" |
}; |
@@ -51,7 +52,8 @@ const char* AlternateProtocolToString(AlternateProtocol protocol) { |
case DEPRECATED_NPN_SPDY_2: |
case NPN_SPDY_3: |
case NPN_SPDY_3_1: |
- case NPN_SPDY_4: |
+ case NPN_SPDY_4_14: |
+ case NPN_SPDY_4_15: |
case QUIC: |
DCHECK(IsAlternateProtocolValid(protocol)); |
return kAlternateProtocolStrings[ |
@@ -81,8 +83,10 @@ AlternateProtocol AlternateProtocolFromNextProto(NextProto next_proto) { |
return NPN_SPDY_3; |
case kProtoSPDY31: |
return NPN_SPDY_3_1; |
- case kProtoSPDY4: |
- return NPN_SPDY_4; |
+ case kProtoSPDY4_14: |
+ return NPN_SPDY_4_14; |
+ case kProtoSPDY4_15: |
+ return NPN_SPDY_4_15; |
case kProtoQUIC1SPDY3: |
return QUIC; |