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

Unified Diff: net/spdy/spdy_stream.h

Issue 1272283003: Add a new SpdyStream::Delegate method to handle trailers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 years, 4 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 | « no previous file | net/spdy/spdy_stream.cc » ('j') | net/spdy/spdy_test_util_common.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_stream.h
diff --git a/net/spdy/spdy_stream.h b/net/spdy/spdy_stream.h
index 4c01e0cecef2c2234fdf9eea32b4a8a4fe4a1c93..f6470c07c15358d9d657c4aaf954b3a3ce4a2dd8 100644
--- a/net/spdy/spdy_stream.h
+++ b/net/spdy/spdy_stream.h
@@ -57,7 +57,8 @@ enum SpdySendStatus {
// whether the current response headers are complete or not.
enum SpdyResponseHeadersStatus {
RESPONSE_HEADERS_ARE_INCOMPLETE,
- RESPONSE_HEADERS_ARE_COMPLETE
+ RESPONSE_HEADERS_ARE_COMPLETE,
+ TRAILERS_RECEIVED,
};
// The SpdyStream is used by the SpdySession to represent each stream known
@@ -148,6 +149,11 @@ class NET_EXPORT_PRIVATE SpdyStream {
// handle it gracefully.
virtual void OnClose(int status) = 0;
+ // Called when trailers are received. Note that trailers HEADER frame will
+ // have END_STREAM flag set, so this will be follwed by OnDataReceived with
Bence 2015/08/06 18:26:25 Nit: s/follwed/followed/.
xunjieli 2015/08/06 21:02:00 Done.
+ // an empty buffer.
+ virtual void OnTrailers(const SpdyHeaderBlock& trailers);
+
protected:
virtual ~Delegate() {}
« no previous file with comments | « no previous file | net/spdy/spdy_stream.cc » ('j') | net/spdy/spdy_test_util_common.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698