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

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: 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/url_request/url_request.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index c6ef160e69c4fb2ace304bc27e9af0cbe6c972a9..708b929200011dc0107118e5a39e3b34cf71d287 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>
@@ -360,6 +362,11 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
// URLRequest -- i.e. the last redirect.
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. the last redirect.
+ 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.

Powered by Google App Engine
This is Rietveld 408576698