#ifndef NET_TOOLS_GDIG_FILE_NET_LOG_H_
#define NET_TOOLS_GDIG_FILE_NET_LOG_H_
#include <string>
#include "base/basictypes.h"
#include "base/synchronization/lock.h"
#include "base/time/time.h"
#include "net/base/net_log.h"
namespace net {
class FileNetLogObserver : public NetLog::ThreadSafeObserver {
public:
explicit FileNetLogObserver(FILE* destination);
virtual ~FileNetLogObserver();
virtual void OnAddEntry(const net::NetLog::Entry& entry) OVERRIDE;
private:
FILE* const destination_;
base::Lock lock_;
base::Time first_event_time_;
};
}
#endif