Index: net/spdy/spdy_protocol.cc |
diff --git a/net/spdy/spdy_protocol.cc b/net/spdy/spdy_protocol.cc |
index 78b4f392a69ccdbd40a02febc0beee4bd4562f7c..4945d85b038778e4e502ddec52cef2e62c9e2715 100644 |
--- a/net/spdy/spdy_protocol.cc |
+++ b/net/spdy/spdy_protocol.cc |
@@ -114,6 +114,8 @@ SpdyFrameType SpdyConstants::ParseFrameType(SpdyMajorVersion version, |
case 9: |
return CONTINUATION; |
case 10: |
+ return ALTSVC; |
+ case 11: |
return BLOCKED; |
} |
break; |
@@ -171,8 +173,10 @@ int SpdyConstants::SerializeFrameType(SpdyMajorVersion version, |
return 8; |
case CONTINUATION: |
return 9; |
- case BLOCKED: |
+ case ALTSVC: |
return 10; |
+ case BLOCKED: |
+ return 11; |
default: |
LOG(DFATAL) << "Serializing unhandled frame type " << frame_type; |
return -1; |
@@ -788,4 +792,13 @@ void SpdyContinuationIR::Visit(SpdyFrameVisitor* visitor) const { |
return visitor->VisitContinuation(*this); |
} |
+SpdyAltSvcIR::SpdyAltSvcIR(SpdyStreamId stream_id) |
+ : SpdyFrameWithStreamIdIR(stream_id), |
+ max_age_(0), |
+ port_(0) {} |
+ |
+void SpdyAltSvcIR::Visit(SpdyFrameVisitor* visitor) const { |
+ return visitor->VisitAltSvc(*this); |
+} |
+ |
} // namespace net |