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

Unified Diff: net/http/http_network_transaction.h

Issue 1327763003: Added and implemented URLRequest::GetTotalSentBytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spdy_sent_bytes_impl
Patch Set: Initial patch set 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
Index: net/http/http_network_transaction.h
diff --git a/net/http/http_network_transaction.h b/net/http/http_network_transaction.h
index ed4597d94fae9940384f14bf957581e22efd452e..fef1a8a0f01a8518f998778e6d78b5578c3e6df3 100644
--- a/net/http/http_network_transaction.h
+++ b/net/http/http_network_transaction.h
@@ -5,6 +5,8 @@
#ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
#define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
+#include <stdint.h>
+
#include <string>
#include "base/basictypes.h"
@@ -63,6 +65,7 @@ class NET_EXPORT_PRIVATE HttpNetworkTransaction
void StopCaching() override;
bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override;
int64 GetTotalReceivedBytes() const override;
+ int64_t GetTotalSentBytes() const override;
void DoneReading() override;
const HttpResponseInfo* GetResponseInfo() const override;
LoadState GetLoadState() const override;
@@ -322,6 +325,9 @@ class NET_EXPORT_PRIVATE HttpNetworkTransaction
// Total number of bytes received on streams for this transaction.
int64 total_received_bytes_;
+ // Total number of bytes sent on streams for this transaction.
mmenke 2015/09/04 15:21:48 These comments aren't accurate - it's actually the
sclittle 2015/09/04 22:03:10 Done.
+ int64_t total_sent_bytes_;
+
// When the transaction started / finished sending the request, including
// the body, if present.
base::TimeTicks send_start_time_;

Powered by Google App Engine
This is Rietveld 408576698