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

Unified Diff: net/http/http_basic_stream.cc

Issue 1314783007: Added and implemented HttpStream::GetTotalSentBytes for basic streams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed mmenke comments Created 5 years, 4 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
Index: net/http/http_basic_stream.cc
diff --git a/net/http/http_basic_stream.cc b/net/http/http_basic_stream.cc
index 0d14e0f9a0eac6683aa6ff8a411cffe4fb796ca1..512b09d327fff2d57b57bf400ffa5847bbd8e899 100644
--- a/net/http/http_basic_stream.cc
+++ b/net/http/http_basic_stream.cc
@@ -87,6 +87,12 @@ int64 HttpBasicStream::GetTotalReceivedBytes() const {
return 0;
}
+int64_t HttpBasicStream::GetTotalSentBytes() const {
+ if (parser())
bengr 2015/09/01 23:48:26 For both Sent and Received, is there the potential
sclittle 2015/09/01 23:57:22 When RenewStreamForAuth is called, then parser() w
+ return parser()->sent_bytes();
+ return 0;
+}
+
bool HttpBasicStream::GetLoadTimingInfo(
LoadTimingInfo* load_timing_info) const {
return state_.connection()->GetLoadTimingInfo(IsConnectionReused(),

Powered by Google App Engine
This is Rietveld 408576698