Stop file observer of NetLog to finish writing to disk

This commit is contained in:
deepak1556 2017-11-02 19:30:16 +05:30 committed by Cheng Zhao
parent f3c32647af
commit e0860ea7a0
2 changed files with 11 additions and 1 deletions

View file

@ -7,6 +7,10 @@
#include "net/log/net_log.h"
namespace net {
class FileNetLogObserver;
}
namespace brightray {
class NetLog : public net::NetLog {
@ -17,6 +21,9 @@ class NetLog : public net::NetLog {
void StartLogging();
private:
// This observer handles writing NetLogs.
std::unique_ptr<net::FileNetLogObserver> file_net_log_observer_;
DISALLOW_COPY_AND_ASSIGN(NetLog);
};