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

Unified Diff: net/spdy/spdy_stream.h

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_session.cc ('k') | net/spdy/spdy_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_stream.h
diff --git a/net/spdy/spdy_stream.h b/net/spdy/spdy_stream.h
index f9e29aa1db8cfbad6e10b62864f72d91096e3e4e..011363ab5feb105cada1a94ef091005c24e6a248 100644
--- a/net/spdy/spdy_stream.h
+++ b/net/spdy/spdy_stream.h
@@ -5,6 +5,8 @@
#ifndef NET_SPDY_SPDY_STREAM_H_
#define NET_SPDY_SPDY_STREAM_H_
+#include <stdint.h>
+
#include <deque>
#include <string>
#include <vector>
@@ -421,11 +423,11 @@ class NET_EXPORT_PRIVATE SpdyStream {
int response_status() const { return response_status_; }
- void IncrementRawReceivedBytes(size_t received_bytes) {
- raw_received_bytes_ += received_bytes;
- }
+ void AddRawReceivedBytes(size_t received_bytes);
+ void AddRawSentBytes(size_t sent_bytes);
int64 raw_received_bytes() const { return raw_received_bytes_; }
+ int64_t raw_sent_bytes() const { return raw_sent_bytes_; }
bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const;
@@ -570,6 +572,9 @@ class NET_EXPORT_PRIVATE SpdyStream {
// Number of bytes that have been received on this stream, including frame
// overhead and headers.
int64 raw_received_bytes_;
+ // Number of bytes that have been sent on this stream, including frame
+ // overhead and headers.
+ int64_t raw_sent_bytes_;
// Number of data bytes that have been sent/received on this stream, not
// including frame overhead. Note that this does not count headers.
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/spdy/spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698