Index: net/quic/quic_spdy_stream.cc |
diff --git a/net/quic/quic_spdy_stream.cc b/net/quic/quic_spdy_stream.cc |
index c946e0c0c95cc5916f9c16ce328100bed7c05ba5..bf5b734ad2bfde4345fb1786dc0c6f3fb4199ece 100644 |
--- a/net/quic/quic_spdy_stream.cc |
+++ b/net/quic/quic_spdy_stream.cc |
@@ -95,6 +95,8 @@ size_t QuicSpdyStream::WriteTrailers( |
// The header block must contain the final offset for this stream, as the |
// trailers may be processed out of order at the peer. |
+ DVLOG(1) << "Inserting trailer: (" << kFinalOffsetHeaderKey << ", " |
+ << stream_bytes_written() + queued_data_bytes() << ")"; |
trailer_block.insert(std::make_pair( |
kFinalOffsetHeaderKey, |
base::IntToString(stream_bytes_written() + queued_data_bytes()))); |
@@ -155,6 +157,13 @@ void QuicSpdyStream::MarkTrailersConsumed(size_t bytes_consumed) { |
decompressed_trailers_.erase(0, bytes_consumed); |
} |
+void QuicSpdyStream::ConsumeHeaderList() { |
+ header_list_.Clear(); |
+ if (FinishedReadingHeaders()) { |
+ sequencer()->SetUnblocked(); |
+ } |
+} |
+ |
void QuicSpdyStream::SetPriority(SpdyPriority priority) { |
DCHECK_EQ(0u, stream_bytes_written()); |
spdy_session_->UpdateStreamPriority(id(), priority); |