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

Unified Diff: chrome/browser/net/passive_log_collector.cc

Issue 7084007: Adds URLRequestJob bytes read to NetLog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 9 years, 7 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 | net/base/net_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/passive_log_collector.cc
===================================================================
--- chrome/browser/net/passive_log_collector.cc (revision 87467)
+++ chrome/browser/net/passive_log_collector.cc (working copy)
@@ -423,7 +423,9 @@
// to summarize transaction read/writes for each SOCKET_IN_USE
// section.
if (entry.type == net::NetLog::TYPE_SOCKET_BYTES_SENT ||
- entry.type == net::NetLog::TYPE_SOCKET_BYTES_RECEIVED) {
+ entry.type == net::NetLog::TYPE_SOCKET_BYTES_RECEIVED ||
+ entry.type == net::NetLog::TYPE_SSL_SOCKET_BYTES_SENT ||
eroman 2011/06/01 19:27:01 good spot!
+ entry.type == net::NetLog::TYPE_SSL_SOCKET_BYTES_RECEIVED) {
return ACTION_NONE;
}
@@ -457,6 +459,10 @@
AddReferenceToSourceDependency(source_dependency, out_info);
}
+ // Don't keep read bytes around in the log, to save memory.
+ if (entry.type == net::NetLog::TYPE_URL_REQUEST_JOB_FILTERED_BYTES_READ)
+ return ACTION_NONE;
+
AddEntryToSourceInfo(entry, out_info);
// If the request has ended, move it to the graveyard.
« no previous file with comments | « no previous file | net/base/net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698