| Index: net/base/net_log.cc
|
| diff --git a/net/base/net_log.cc b/net/base/net_log.cc
|
| index 0f1bac4879b077f2c4616c61530cb686d1cbc7f6..4484a8a0b2f70cbe80990cc3f9a5844c7afa8fc2 100644
|
| --- a/net/base/net_log.cc
|
| +++ b/net/base/net_log.cc
|
| @@ -127,20 +127,6 @@ void BoundNetLog::AddEntryWithTime(
|
| }
|
| }
|
|
|
| -NetLog::LogLevel BoundNetLog::GetLogLevel() const {
|
| - if (net_log_)
|
| - return net_log_->GetLogLevel();
|
| - return NetLog::LOG_BASIC;
|
| -}
|
| -
|
| -bool BoundNetLog::IsLoggingBytes() const {
|
| - return GetLogLevel() == NetLog::LOG_ALL;
|
| -}
|
| -
|
| -bool BoundNetLog::IsLoggingAllEvents() const {
|
| - return GetLogLevel() <= NetLog::LOG_ALL_BUT_BYTES;
|
| -}
|
| -
|
| void BoundNetLog::AddEvent(
|
| NetLog::EventType event_type,
|
| const scoped_refptr<NetLog::EventParameters>& params) const {
|
| @@ -171,6 +157,20 @@ void BoundNetLog::EndEventWithNetErrorCode(NetLog::EventType event_type,
|
| }
|
| }
|
|
|
| +NetLog::LogLevel BoundNetLog::GetLogLevel() const {
|
| + if (net_log_)
|
| + return net_log_->GetLogLevel();
|
| + return NetLog::LOG_BASIC;
|
| +}
|
| +
|
| +bool BoundNetLog::IsLoggingBytes() const {
|
| + return GetLogLevel() == NetLog::LOG_ALL;
|
| +}
|
| +
|
| +bool BoundNetLog::IsLoggingAllEvents() const {
|
| + return GetLogLevel() <= NetLog::LOG_ALL_BUT_BYTES;
|
| +}
|
| +
|
| // static
|
| BoundNetLog BoundNetLog::Make(NetLog* net_log,
|
| NetLog::SourceType source_type) {
|
|
|