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

Unified Diff: net/http/http_stream_parser.h

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_stream_parser.h
diff --git a/net/http/http_stream_parser.h b/net/http/http_stream_parser.h
index 471d9f10c39ba9c5e04dc3268af2c7fc8d8e2a40..a5ee8b88e593d13f8d687e469151b8fa63b18cb9 100644
--- a/net/http/http_stream_parser.h
+++ b/net/http/http_stream_parser.h
@@ -5,6 +5,8 @@
#ifndef NET_HTTP_HTTP_STREAM_PARSER_H_
#define NET_HTTP_HTTP_STREAM_PARSER_H_
+#include <stdint.h>
+
#include <string>
#include "base/basictypes.h"
@@ -77,6 +79,8 @@ class NET_EXPORT_PRIVATE HttpStreamParser {
int64 received_bytes() const { return received_bytes_; }
+ int64_t sent_bytes() const { return sent_bytes_; }
+
void GetSSLInfo(SSLInfo* ssl_info);
void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info);
@@ -201,6 +205,9 @@ class NET_EXPORT_PRIVATE HttpStreamParser {
// value may be bigger than final.
int64 received_bytes_;
+ // The amount of sent data.
+ int64_t sent_bytes_;
+
// The parsed response headers. Owned by the caller of SendRequest. This
// cannot be safely accessed after reading the final set of headers, as the
// caller of SendRequest may have been destroyed - this happens in the case an

Powered by Google App Engine
This is Rietveld 408576698