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

Unified Diff: net/quic/core/quic_spdy_stream.h

Issue 2430973004: Landing Recent QUIC changes until 10:38 AM, Oct 17, 2016 UTC-4 (Closed)
Patch Set: Improving flagsaver logging Created 4 years, 2 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/core/quic_spdy_session.cc ('k') | net/quic/core/quic_spdy_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_spdy_stream.h
diff --git a/net/quic/core/quic_spdy_stream.h b/net/quic/core/quic_spdy_stream.h
index 294be26e96ae6135ac39b3328a09b56a709c5cf6..0a11d9ddae16ea08949a398003389fd36848f898 100644
--- a/net/quic/core/quic_spdy_stream.h
+++ b/net/quic/core/quic_spdy_stream.h
@@ -100,6 +100,10 @@ class NET_EXPORT_PRIVATE QuicSpdyStream : public ReliableQuicStream {
size_t frame_len,
const QuicHeaderList& header_list);
+ // Called when the received headers are too large. By default this will
+ // reset the stream.
+ virtual void OnHeadersTooLarge();
+
// Called by the session when decompressed PUSH_PROMISE headers data
// is received for this stream.
// May be called multiple times, with each call providing additional headers
@@ -211,6 +215,12 @@ class NET_EXPORT_PRIVATE QuicSpdyStream : public ReliableQuicStream {
// will be available.
bool IsClosed() { return sequencer()->IsClosed(); }
+ void set_allow_bidirectional_data(bool value) {
+ allow_bidirectional_data_ = value;
+ }
+
+ bool allow_bidirectional_data() const { return allow_bidirectional_data_; }
+
protected:
// Called by OnStreamHeadersComplete depending on which type (initial or
// trailing) headers are expected next.
@@ -241,6 +251,9 @@ class NET_EXPORT_PRIVATE QuicSpdyStream : public ReliableQuicStream {
QuicSpdySession* spdy_session_;
Visitor* visitor_;
+ // If true, allow sending of a request to continue while the response is
+ // arriving.
+ bool allow_bidirectional_data_;
// True if the headers have been completely decompressed.
bool headers_decompressed_;
// The priority of the stream, once parsed.
« no previous file with comments | « net/quic/core/quic_spdy_session.cc ('k') | net/quic/core/quic_spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698