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

Unified Diff: net/quic/quic_spdy_session.h

Issue 2115033002: Adds QUIC_VERSION_36 which adds support to force HOL blocking between streams for measurement purpo… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@126085461
Patch Set: typo Created 4 years, 5 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_session_test.cc ('k') | net/quic/quic_spdy_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_spdy_session.h
diff --git a/net/quic/quic_spdy_session.h b/net/quic/quic_spdy_session.h
index f08ad4c749265a652eda2fb765b4f22d7e0d2bdf..28a2437e58fbaaee295bcb58b2d562b5f8fc21a5 100644
--- a/net/quic/quic_spdy_session.h
+++ b/net/quic/quic_spdy_session.h
@@ -100,6 +100,14 @@ class NET_EXPORT_PRIVATE QuicSpdySession : public QuicSession {
void OnConfigNegotiated() override;
+ // Called by |headers_stream_| when |force_hol_blocking_| is true.
+ virtual void OnStreamFrameData(QuicStreamId stream_id,
+ const char* data,
+ size_t len,
+ bool fin);
+
+ bool force_hol_blocking() const { return force_hol_blocking_; }
+
protected:
// Override CreateIncomingDynamicStream() and CreateOutgoingDynamicStream()
// with QuicSpdyStream return type to make sure that all data streams are
@@ -121,6 +129,11 @@ class NET_EXPORT_PRIVATE QuicSpdySession : public QuicSession {
std::unique_ptr<QuicHeadersStream> headers_stream_;
+ // If set, redirect all data through the headers stream in order to
+ // simulate forced HOL blocking between streams as happens in
+ // HTTP/2 over TCP.
+ bool force_hol_blocking_;
+
DISALLOW_COPY_AND_ASSIGN(QuicSpdySession);
};
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698