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

Unified Diff: net/url_request/url_request.h

Issue 1327763003: Added and implemented URLRequest::GetTotalSentBytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spdy_sent_bytes_impl
Patch Set: Addressed nits 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/http/http_transaction_test_util.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « net/http/http_transaction_test_util.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698