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

Unified Diff: net/spdy/spdy_protocol.cc

Issue 288373004: Add handling + parsing for HTTP/2 ALTSVC frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Non-static initializer fixes. Created 6 years, 7 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_protocol.h ('k') | net/spdy/spdy_protocol_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « net/spdy/spdy_protocol.h ('k') | net/spdy/spdy_protocol_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698