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

Unified Diff: net/quic/quic_spdy_stream.h

Issue 1776423004: Only MarkTrailersConsumed when actually sending trailers notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add internal changes and fix tests Created 4 years, 9 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/quic/quic_http_stream_test.cc ('k') | net/quic/quic_spdy_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_spdy_stream.h
diff --git a/net/quic/quic_spdy_stream.h b/net/quic/quic_spdy_stream.h
index 65304d66f62d70c36ac1b0a99ec7209d82180738..a5adfe29188bd632bc5a40e79eb65296d975c037 100644
--- a/net/quic/quic_spdy_stream.h
+++ b/net/quic/quic_spdy_stream.h
@@ -141,6 +141,11 @@ class NET_EXPORT_PRIVATE QuicSpdyStream : public ReliableQuicStream {
return decompressed_trailers_;
}
+ // Returns whatever trailers have been received for this stream.
+ const SpdyHeaderBlock& response_trailers() const {
+ return response_trailers_;
+ }
+
virtual SpdyPriority priority() const;
// Sets priority_ to priority. This should only be called before bytes are
@@ -182,6 +187,8 @@ class NET_EXPORT_PRIVATE QuicSpdyStream : public ReliableQuicStream {
// Contains a copy of the decompressed trailers until they are consumed
// via ProcessData or Readv.
std::string decompressed_trailers_;
+ // The parsed trailers received from the peer.
+ SpdyHeaderBlock response_trailers_;
DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream);
};
« no previous file with comments | « net/quic/quic_http_stream_test.cc ('k') | net/quic/quic_spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698