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

Unified Diff: content/browser/loader/async_resource_handler.h

Issue 2624123002: Add UMA histograms to AsyncResourceHandler to track content size. (Closed)
Patch Set: remove not used entry in histogram.xml Created 3 years, 11 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 | « no previous file | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/async_resource_handler.h
diff --git a/content/browser/loader/async_resource_handler.h b/content/browser/loader/async_resource_handler.h
index dbf3b03503a43e5652e5d4a2259a4b4fffc5b263..a664c3e9927e6b972f639d399c1a076b8ee72828 100644
--- a/content/browser/loader/async_resource_handler.h
+++ b/content/browser/loader/async_resource_handler.h
@@ -79,6 +79,10 @@ class CONTENT_EXPORT AsyncResourceHandler : public ResourceHandler,
int allocation_size_;
+ // Size of received body. Used for comparison with expected content size,
+ // which is reported to UMA.
+ int64_t total_read_body_bytes_;
+
bool first_chunk_read_ = false;
bool did_defer_;
« no previous file with comments | « no previous file | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698