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

Unified Diff: net/quic/reliable_quic_stream.h

Issue 1497113003: Add a queued_data_bytes() method to ReliableQuicStream. Not used outside of tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@108727610
Patch Set: Created 5 years 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/reliable_quic_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/reliable_quic_stream.h
diff --git a/net/quic/reliable_quic_stream.h b/net/quic/reliable_quic_stream.h
index 096770c4fac0c8bf21d9eeb12f2a99fc3e1adcdd..3ea970b60da0fb783ebabd5bdca2563211966298 100644
--- a/net/quic/reliable_quic_stream.h
+++ b/net/quic/reliable_quic_stream.h
@@ -113,6 +113,8 @@ class NET_EXPORT_PRIVATE ReliableQuicStream {
bool fin_received() { return fin_received_; }
bool fin_sent() { return fin_sent_; }
+ uint64 queued_data_bytes() const { return queued_data_bytes_; }
+
uint64 stream_bytes_read() const { return stream_bytes_read_; }
uint64 stream_bytes_written() const { return stream_bytes_written_; }
@@ -246,6 +248,8 @@ class NET_EXPORT_PRIVATE ReliableQuicStream {
void MaybeSendBlocked();
std::list<PendingData> queued_data_;
+ // How many bytes are queued?
+ uint64 queued_data_bytes_;
QuicStreamSequencer sequencer_;
QuicStreamId id_;
« no previous file with comments | « no previous file | net/quic/reliable_quic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698