web_engine_net_log_observer.h 884 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef FUCHSIA_WEB_WEBENGINE_BROWSER_WEB_ENGINE_NET_LOG_OBSERVER_H_
  5. #define FUCHSIA_WEB_WEBENGINE_BROWSER_WEB_ENGINE_NET_LOG_OBSERVER_H_
  6. #include <memory>
  7. namespace base {
  8. class FilePath;
  9. } // namespace base
  10. namespace net {
  11. class FileNetLogObserver;
  12. } // namespace net
  13. class WebEngineNetLogObserver {
  14. public:
  15. explicit WebEngineNetLogObserver(const base::FilePath& log_path);
  16. WebEngineNetLogObserver(const WebEngineNetLogObserver&) = delete;
  17. WebEngineNetLogObserver& operator=(const WebEngineNetLogObserver&) = delete;
  18. ~WebEngineNetLogObserver();
  19. private:
  20. std::unique_ptr<net::FileNetLogObserver> file_net_log_observer_;
  21. };
  22. #endif // FUCHSIA_WEB_WEBENGINE_BROWSER_WEB_ENGINE_NET_LOG_OBSERVER_H_