Stop file observer of NetLog to finish writing to disk
This commit is contained in:
parent
f3c32647af
commit
e0860ea7a0
2 changed files with 11 additions and 1 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue