net_log.h 642 B

123456789101112131415161718192021222324252627282930313233
  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 "net/log/net_log.h"
  7. namespace net {
  8. class FileNetLogObserver;
  9. }
  10. namespace brightray {
  11. class NetLog : public net::NetLog {
  12. public:
  13. NetLog();
  14. ~NetLog() override;
  15. void StartLogging();
  16. private:
  17. // This observer handles writing NetLogs.
  18. std::unique_ptr<net::FileNetLogObserver> file_net_log_observer_;
  19. DISALLOW_COPY_AND_ASSIGN(NetLog);
  20. };
  21. } // namespace brightray
  22. #endif // BRIGHTRAY_BROWSER_NET_LOG_H_