diff options
author | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 19:58:14 +0000 |
---|---|---|
committer | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 19:58:14 +0000 |
commit | 465aeb94531f3d73959412b2c8033005fb7c44d7 (patch) | |
tree | 39d71fab356d8816ac83b5bb819ce455027c3906 /chrome/browser/net | |
parent | 26783d056f3639d6310c41d1f499d5a9b13bbf90 (diff) | |
download | chromium_src-465aeb94531f3d73959412b2c8033005fb7c44d7.zip chromium_src-465aeb94531f3d73959412b2c8033005fb7c44d7.tar.gz chromium_src-465aeb94531f3d73959412b2c8033005fb7c44d7.tar.bz2 |
Add actual bytes sent/received to net-internals.
BUG=54745
TEST=manual
Review URL: http://codereview.chromium.org/3582007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r-- | chrome/browser/net/chrome_net_log.cc | 8 | ||||
-rw-r--r-- | chrome/browser/net/chrome_net_log.h | 4 | ||||
-rw-r--r-- | chrome/browser/net/net_log_logger.cc | 2 |
3 files changed, 12 insertions, 2 deletions
diff --git a/chrome/browser/net/chrome_net_log.cc b/chrome/browser/net/chrome_net_log.cc index 92daba0..b6ef86e 100644 --- a/chrome/browser/net/chrome_net_log.cc +++ b/chrome/browser/net/chrome_net_log.cc @@ -17,6 +17,14 @@ ChromeNetLog::Observer::Observer(LogLevel log_level) : log_level_(log_level) {} +net::NetLog::LogLevel ChromeNetLog::Observer::log_level() const { + return log_level_; +} + +void ChromeNetLog::Observer::set_log_level(net::NetLog::LogLevel log_level) { + log_level_ = log_level; +} + ChromeNetLog::ChromeNetLog() : next_id_(1), passive_collector_(new PassiveLogCollector), diff --git a/chrome/browser/net/chrome_net_log.h b/chrome/browser/net/chrome_net_log.h index 24183bf..aac09e6 100644 --- a/chrome/browser/net/chrome_net_log.h +++ b/chrome/browser/net/chrome_net_log.h @@ -44,7 +44,9 @@ class ChromeNetLog : public net::NetLog { const Source& source, EventPhase phase, EventParameters* params) = 0; - LogLevel log_level() const { return log_level_; } + LogLevel log_level() const; + protected: + void set_log_level(LogLevel log_level); private: LogLevel log_level_; DISALLOW_COPY_AND_ASSIGN(Observer); diff --git a/chrome/browser/net/net_log_logger.cc b/chrome/browser/net/net_log_logger.cc index 4f5021f..5db7657 100644 --- a/chrome/browser/net/net_log_logger.cc +++ b/chrome/browser/net/net_log_logger.cc @@ -7,7 +7,7 @@ #include "base/json/json_writer.h" #include "base/values.h" -NetLogLogger::NetLogLogger() : Observer(net::NetLog::LOG_ALL) {} +NetLogLogger::NetLogLogger() : Observer(net::NetLog::LOG_ALL_BUT_BYTES) {} NetLogLogger::~NetLogLogger() {} |