net_log.h 705 B

123456789101112131415161718192021222324252627282930
  1. // Copyright (c) 2015 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef BRIGHTRAY_BROWSER_NET_LOG_H_
  5. #define BRIGHTRAY_BROWSER_NET_LOG_H_
  6. #include "base/files/scoped_file.h"
  7. #include "net/log/net_log.h"
  8. #include "net/log/write_to_file_net_log_observer.h"
  9. namespace brightray {
  10. class NetLog : public net::NetLog {
  11. public:
  12. NetLog();
  13. ~NetLog() override;
  14. void StartLogging(net::URLRequestContext* url_request_context);
  15. private:
  16. base::ScopedFILE log_file_;
  17. net::WriteToFileNetLogObserver write_to_file_observer_;
  18. DISALLOW_COPY_AND_ASSIGN(NetLog);
  19. };
  20. } // namespace brightray
  21. #endif // BRIGHTRAY_BROWSER_NET_LOG_H_