summaryrefslogtreecommitdiffstats
path: root/net/base/net_log.cc
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 21:07:33 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 21:07:33 +0000
commit095c7cfacf4a59d5241a17207d7a8a8096469334 (patch)
tree7eb71d968ae4dc9705ba5e9c5ad1b1727f34b2fc /net/base/net_log.cc
parent701142a4edf3872fc9b433b68bdaf2c0a3c22db8 (diff)
downloadchromium_src-095c7cfacf4a59d5241a17207d7a8a8096469334.zip
chromium_src-095c7cfacf4a59d5241a17207d7a8a8096469334.tar.gz
chromium_src-095c7cfacf4a59d5241a17207d7a8a8096469334.tar.bz2
Fix a regression whereby full-granularity network events were being captured by PassiveLogCollector.
BUG=53883 TEST=Load a webpage. Now open about:net-internals and verify that the log for that URL does NOT contain the HTTP request/response headers. Review URL: http://codereview.chromium.org/3274016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_log.cc')
-rw-r--r--net/base/net_log.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/net/base/net_log.cc b/net/base/net_log.cc
index 734cef1..2cc149f 100644
--- a/net/base/net_log.cc
+++ b/net/base/net_log.cc
@@ -122,10 +122,14 @@ void BoundNetLog::AddEntryWithTime(
}
}
-bool BoundNetLog::HasListener() const {
+NetLog::LogLevel BoundNetLog::GetLogLevel() const {
if (net_log_)
- return net_log_->HasListener();
- return false;
+ return net_log_->GetLogLevel();
+ return NetLog::LOG_BASIC;
+}
+
+bool BoundNetLog::IsLoggingAll() const {
+ return GetLogLevel() == NetLog::LOG_ALL;
}
void BoundNetLog::AddEvent(