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

Unified Diff: net/spdy/spdy_stream.cc

Issue 1309663003: Implemented SpdyHttpStream::GetTotalSentBytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@http_stream_sent_bytes
Patch Set: Addressed comments 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/spdy/spdy_stream.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_stream.cc
diff --git a/net/spdy/spdy_stream.cc b/net/spdy/spdy_stream.cc
index 812d5205bb5d56ee7147711afd6a3c831e92f9ff..e855b0b6f42752eed6b232596d455e7f996c9535 100644
--- a/net/spdy/spdy_stream.cc
+++ b/net/spdy/spdy_stream.cc
@@ -108,6 +108,7 @@ SpdyStream::SpdyStream(SpdyStreamType type,
response_status_(OK),
net_log_(net_log),
raw_received_bytes_(0),
+ raw_sent_bytes_(0),
send_bytes_(0),
recv_bytes_(0),
write_handler_guard_(false),
@@ -760,6 +761,14 @@ NextProto SpdyStream::GetProtocol() const {
return session_->protocol();
}
+void SpdyStream::AddRawReceivedBytes(size_t received_bytes) {
+ raw_received_bytes_ += received_bytes;
+}
+
+void SpdyStream::AddRawSentBytes(size_t sent_bytes) {
+ raw_sent_bytes_ += sent_bytes;
+}
+
bool SpdyStream::GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const {
if (stream_id_ == 0)
return false;
« no previous file with comments | « net/spdy/spdy_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698