diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 19:19:21 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 19:19:21 +0000 |
commit | 9ccdad2ba8b72e0a5533871d550dc776a0d3ac09 (patch) | |
tree | 361d8bc0c15c021e475ee1b876fcb1a634561185 /net/spdy/spdy_framer.h | |
parent | 02e651033f101da092409abd2243ba21b8aa0084 (diff) | |
download | chromium_src-9ccdad2ba8b72e0a5533871d550dc776a0d3ac09.zip chromium_src-9ccdad2ba8b72e0a5533871d550dc776a0d3ac09.tar.gz chromium_src-9ccdad2ba8b72e0a5533871d550dc776a0d3ac09.tar.bz2 |
Update spdy_protocol to support the GOAWAY message.
Update SpdyControlFrame to remove the stream_id.
Update associated tests.
BUG=none
TEST=spdy_protocol_test.cc
Review URL: http://codereview.chromium.org/668048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40643 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_framer.h')
-rw-r--r-- | net/spdy/spdy_framer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/spdy/spdy_framer.h b/net/spdy/spdy_framer.h index fedb6e3..c97ba682 100644 --- a/net/spdy/spdy_framer.h +++ b/net/spdy/spdy_framer.h @@ -148,6 +148,13 @@ class SpdyFramer { static SpdyRstStreamControlFrame* CreateRstStream(SpdyStreamId stream_id, int status); + // Creates an instance of SpdyGoAwayControlFrame. The GOAWAY frame is used + // prior to the shutting down of the TCP connection, and includes the + // stream_id of the last stream the sender of the frame is willing to process + // to completion. + static SpdyGoAwayControlFrame* CreateGoAway( + SpdyStreamId last_accepted_stream_id); + // Create a SpdySynReplyControlFrame. // |stream_id| is the stream for this frame. // |flags| is the flags to use with the data. |