summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_http_stream.cc
diff options
context:
space:
mode:
authorxunjieli <xunjieli@chromium.org>2015-08-11 12:15:02 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-11 19:15:39 +0000
commit294da720bb313d48fdba567f192850c9b36b0650 (patch)
treef3d367bd7e1962020e8ff355350f323cc86f598e /net/spdy/spdy_http_stream.cc
parent33076cbe96e8eb8c50541e40f5266955c3db667f (diff)
downloadchromium_src-294da720bb313d48fdba567f192850c9b36b0650.zip
chromium_src-294da720bb313d48fdba567f192850c9b36b0650.tar.gz
chromium_src-294da720bb313d48fdba567f192850c9b36b0650.tar.bz2
Add a new SpdyStream::Delegate method to handle trailers
This CL adds a new SpdyStream::Delegate method to surface trailers to Delegate's implementations. Before this CL, receiving trailers will trigger a spdy protocol error. However, SpdyHttpStream does not implement this delegate method as of this CL, so trailers are ignored. BUG=481033 Review URL: https://codereview.chromium.org/1272283003 Cr-Commit-Position: refs/heads/master@{#342859}
Diffstat (limited to 'net/spdy/spdy_http_stream.cc')
-rw-r--r--net/spdy/spdy_http_stream.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/spdy/spdy_http_stream.cc b/net/spdy/spdy_http_stream.cc
index f3da77b..fd708c8 100644
--- a/net/spdy/spdy_http_stream.cc
+++ b/net/spdy/spdy_http_stream.cc
@@ -365,6 +365,9 @@ void SpdyHttpStream::OnDataSent() {
ReadAndSendRequestBodyData();
}
+// TODO(xunjieli): Maybe do something with the trailers. crbug.com/422958.
+void SpdyHttpStream::OnTrailers(const SpdyHeaderBlock& trailers) {}
+
void SpdyHttpStream::OnClose(int status) {
if (stream_.get()) {
stream_closed_ = true;