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

Unified Diff: net/url_request/url_fetcher_core.h

Issue 1279543002: Support needed to measure user and service traffic in Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewHistogram
Patch Set: 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/url_request/url_fetcher_core.h
diff --git a/net/url_request/url_fetcher_core.h b/net/url_request/url_fetcher_core.h
index 06f8451c4f8e5d1ad4d207ea0924efd8ec0d1e01..ec0e8db51f6227b1a23d83f4b1f20425d0fbea6a 100644
--- a/net/url_request/url_fetcher_core.h
+++ b/net/url_request/url_fetcher_core.h
@@ -116,6 +116,8 @@ class URLFetcherCore : public base::RefCountedThreadSafe<URLFetcherCore>,
const GURL& GetURL() const;
const URLRequestStatus& GetStatus() const;
int GetResponseCode() const;
+ int64 GetBytesReceivedSize() const;
+ int64 GetBytesSentSize() const;
const ResponseCookies& GetCookies() const;
int64_t GetReceivedResponseContentLength() const;
int64_t GetTotalReceivedBytes() const;
@@ -334,7 +336,10 @@ class URLFetcherCore : public base::RefCountedThreadSafe<URLFetcherCore>,
int64 current_response_bytes_;
// Total expected bytes to receive (-1 if it cannot be determined).
int64 total_response_bytes_;
-
+ // Total received bytes size
bengr 2015/08/07 18:00:02 Add a period.
amohammadkhan 2015/08/11 22:04:36 Done.
+ int64 total_downloaded_bytes_;
+ // total sent bytes size
bengr 2015/08/07 18:00:02 You can be more specific for these. Total bytes se
amohammadkhan 2015/08/11 22:04:36 Done.
+ int64 total_sent_bytes_;
// TODO(willchan): Get rid of this after debugging crbug.com/90971.
base::debug::StackTrace stack_trace_;

Powered by Google App Engine
This is Rietveld 408576698