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

Unified Diff: net/quic/quic_reliable_client_stream.cc

Issue 1360063002: Include HTTP header bytes in GetTotalSent/ReceivedBytes for QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits Created 5 years, 3 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_reliable_client_stream.h ('k') | net/quic/quic_reliable_client_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_reliable_client_stream.cc
diff --git a/net/quic/quic_reliable_client_stream.cc b/net/quic/quic_reliable_client_stream.cc
index 42fda8bf111344972d78a94a192e14e4a8f64da5..f5000b29bb96f6de22d22390f1fec7cc3ec1629c 100644
--- a/net/quic/quic_reliable_client_stream.cc
+++ b/net/quic/quic_reliable_client_stream.cc
@@ -33,7 +33,7 @@ void QuicReliableClientStream::OnStreamHeadersComplete(bool fin,
size_t frame_len) {
QuicDataStream::OnStreamHeadersComplete(fin, frame_len);
// The delegate will read the headers via a posted task.
- NotifyDelegateOfHeadersCompleteLater();
+ NotifyDelegateOfHeadersCompleteLater(frame_len);
}
void QuicReliableClientStream::OnDataAvailable() {
@@ -133,15 +133,17 @@ bool QuicReliableClientStream::CanWrite(const CompletionCallback& callback) {
return can_write;
}
-void QuicReliableClientStream::NotifyDelegateOfHeadersCompleteLater() {
+void QuicReliableClientStream::NotifyDelegateOfHeadersCompleteLater(
+ size_t frame_len) {
DCHECK(delegate_);
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&QuicReliableClientStream::NotifyDelegateOfHeadersComplete,
- weak_factory_.GetWeakPtr()));
+ weak_factory_.GetWeakPtr(), frame_len));
}
-void QuicReliableClientStream::NotifyDelegateOfHeadersComplete() {
+void QuicReliableClientStream::NotifyDelegateOfHeadersComplete(
+ size_t frame_len) {
if (!delegate_)
return;
@@ -158,7 +160,7 @@ void QuicReliableClientStream::NotifyDelegateOfHeadersComplete() {
return;
}
- delegate_->OnHeadersAvailable(headers);
+ delegate_->OnHeadersAvailable(headers, frame_len);
}
void QuicReliableClientStream::NotifyDelegateOfDataAvailableLater() {
« no previous file with comments | « net/quic/quic_reliable_client_stream.h ('k') | net/quic/quic_reliable_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698