| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 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 | |
| 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_NET_LOG_H_ | |
| 6 #define HEADLESS_LIB_BROWSER_HEADLESS_NET_LOG_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/macros.h" | |
| 12 #include "net/log/write_to_file_net_log_observer.h" | |
| 13 | |
| 14 namespace base { | |
| 15 class FilePath; | |
| 16 } | |
| 17 | |
| 18 namespace headless { | |
| 19 | |
| 20 class HeadlessNetLog : public net::NetLog { | |
| 21 public: | |
| 22 explicit HeadlessNetLog(const base::FilePath& log_path); | |
| 23 ~HeadlessNetLog() override; | |
| 24 | |
| 25 private: | |
| 26 std::unique_ptr<net::WriteToFileNetLogObserver> write_to_file_observer_; | |
| 27 | |
| 28 DISALLOW_COPY_AND_ASSIGN(HeadlessNetLog); | |
| 29 }; | |
| 30 | |
| 31 } // namespace headless | |
| 32 | |
| 33 #endif // HEADLESS_LIB_BROWSER_HEADLESS_NET_LOG_H_ | |
| OLD | NEW |