| Index: net/tools/gdig/file_net_log.h
|
| diff --git a/net/tools/gdig/file_net_log.h b/net/tools/gdig/file_net_log.h
|
| index cb8038062157a7282fda1a4178edc2de49cf2cd6..fc35a3d7aea51f7144978f7d50bb7ce910ad3615 100644
|
| --- a/net/tools/gdig/file_net_log.h
|
| +++ b/net/tools/gdig/file_net_log.h
|
| @@ -15,27 +15,18 @@
|
|
|
| namespace net {
|
|
|
| -// FileNetLog is a simple implementation of NetLog that prints out all
|
| -// the events received into the stream passed to the constructor.
|
| -class FileNetLog : public NetLog {
|
| +// FileNetLogObserver is a simple implementation of NetLog::ThreadSafeObserver
|
| +// that prints out all the events received into the stream passed
|
| +// to the constructor.
|
| +class FileNetLogObserver : public NetLog::ThreadSafeObserver {
|
| public:
|
| - explicit FileNetLog(FILE* destination, LogLevel level);
|
| - virtual ~FileNetLog();
|
| + explicit FileNetLogObserver(FILE* destination);
|
| + virtual ~FileNetLogObserver();
|
|
|
| - private:
|
| - // NetLog implementation:
|
| + // NetLog::ThreadSafeObserver implementation:
|
| virtual void OnAddEntry(const net::NetLog::Entry& entry) OVERRIDE;
|
| - virtual uint32 NextID() OVERRIDE;
|
| - virtual LogLevel GetLogLevel() const OVERRIDE;
|
| - virtual void AddThreadSafeObserver(ThreadSafeObserver* observer,
|
| - LogLevel log_level) OVERRIDE;
|
| - virtual void SetObserverLogLevel(ThreadSafeObserver* observer,
|
| - LogLevel log_level) OVERRIDE;
|
| - virtual void RemoveThreadSafeObserver(ThreadSafeObserver* observer) OVERRIDE;
|
| -
|
| - base::AtomicSequenceNumber sequence_number_;
|
| - const NetLog::LogLevel log_level_;
|
|
|
| + private:
|
| FILE* const destination_;
|
| base::Lock lock_;
|
|
|
|
|