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

Unified Diff: net/quic/quic_headers_stream.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_flags.cc ('k') | net/quic/quic_headers_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_headers_stream.h
diff --git a/net/quic/quic_headers_stream.h b/net/quic/quic_headers_stream.h
index 3f174030878b51707b7060f93d2079507c8b5f17..e80040e0aa0f27b6eccdb9953e6bf435d07a19a7 100644
--- a/net/quic/quic_headers_stream.h
+++ b/net/quic/quic_headers_stream.h
@@ -65,6 +65,15 @@ class NET_EXPORT_PRIVATE QuicHeadersStream : public ReliableQuicStream {
SpdyHeaderBlock headers,
QuicAckListenerInterface* ack_listener);
+ // For forcing HOL blocking. This encapsulates data from other
+ // streams into HTTP/2 data frames on the headers stream.
+ QuicConsumedData WritevStreamData(
+ QuicStreamId id,
+ QuicIOVector iov,
+ QuicStreamOffset offset,
+ bool fin,
+ QuicAckListenerInterface* ack_notifier_delegate);
+
// ReliableQuicStream implementation
void OnDataAvailable() override;
@@ -123,6 +132,12 @@ class NET_EXPORT_PRIVATE QuicHeadersStream : public ReliableQuicStream {
// Called when the size of the compressed frame payload is available.
void OnCompressedFrameSize(size_t frame_len);
+ // For force HOL blocking, where stream frames from all streams are
+ // plumbed through headers stream as HTTP/2 data frames. Return false
+ // if force_hol_blocking_ is false;
+ bool OnDataFrameHeader(QuicStreamId stream_id, size_t length, bool fin);
+ bool OnStreamFrameData(QuicStreamId stream_id, const char* data, size_t len);
+
// Returns true if the session is still connected.
bool IsConnected();
« no previous file with comments | « net/quic/quic_flags.cc ('k') | net/quic/quic_headers_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698