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

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

Issue 2424953002: Move allow_bidirectional_data_ from QuicSpdyClientStream to QuicSpdyStream, and use in (test-only) … (Closed)
Patch Set: 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 | « no previous file | 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..8cdcf4a11c7caf78fd77b7b0fb937a7ff63a0d24 100644
--- a/net/quic/core/quic_spdy_stream.h
+++ b/net/quic/core/quic_spdy_stream.h
@@ -211,6 +211,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 +247,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 | « no previous file | net/quic/core/quic_spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698