Index: net/url_request/url_request.h |
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h |
index c6ef160e69c4fb2ace304bc27e9af0cbe6c972a9..f9b109e1a241d3af9c4582fde3bfc5da3ac96e16 100644 |
--- a/net/url_request/url_request.h |
+++ b/net/url_request/url_request.h |
@@ -5,6 +5,8 @@ |
#ifndef NET_URL_REQUEST_URL_REQUEST_H_ |
#define NET_URL_REQUEST_URL_REQUEST_H_ |
+#include <stdint.h> |
+ |
#include <string> |
#include <vector> |
@@ -357,9 +359,16 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe), |
// Gets the total amount of data received from network after SSL decoding and |
// proxy handling. Pertains only to the last URLRequestJob issued by this |
- // URLRequest -- i.e. the last redirect. |
+ // URLRequest, i.e. reset on redirects, but not reset when multiple roundtrips |
+ // are used for range requests or auth. |
int64 GetTotalReceivedBytes() const; |
+ // Gets the total amount of data sent over the network before SSL encoding and |
+ // proxy handling. Pertains only to the last URLRequestJob issued by this |
+ // URLRequest, i.e. reset on redirects, but not reset when multiple roundtrips |
+ // are used for range requests or auth. |
+ int64_t GetTotalSentBytes() const; |
+ |
// Returns the current load state for the request. The returned value's |
// |param| field is an optional parameter describing details related to the |
// load state. Not all load states have a parameter. |