Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: headless/lib/browser/headless_net_log.h

Issue 2841953002: headless: Add support for net logging (Closed)
Patch Set: CrOS build fix Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/lib/browser/headless_browser_main_parts.cc ('k') | headless/lib/browser/headless_net_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_net_log.h
diff --git a/headless/lib/browser/headless_net_log.h b/headless/lib/browser/headless_net_log.h
new file mode 100644
index 0000000000000000000000000000000000000000..ac33ee5ae6bc0bcb9d5d278c61cdbcb04f6c0624
--- /dev/null
+++ b/headless/lib/browser/headless_net_log.h
@@ -0,0 +1,33 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef HEADLESS_LIB_BROWSER_HEADLESS_NET_LOG_H_
+#define HEADLESS_LIB_BROWSER_HEADLESS_NET_LOG_H_
+
+#include <memory>
+#include <string>
+
+#include "base/macros.h"
+#include "net/log/write_to_file_net_log_observer.h"
+
+namespace base {
+class FilePath;
+}
+
+namespace headless {
+
+class HeadlessNetLog : public net::NetLog {
+ public:
+ explicit HeadlessNetLog(const base::FilePath& log_path);
+ ~HeadlessNetLog() override;
+
+ private:
+ std::unique_ptr<net::WriteToFileNetLogObserver> write_to_file_observer_;
+
+ DISALLOW_COPY_AND_ASSIGN(HeadlessNetLog);
+};
+
+} // namespace headless
+
+#endif // HEADLESS_LIB_BROWSER_HEADLESS_NET_LOG_H_
« no previous file with comments | « headless/lib/browser/headless_browser_main_parts.cc ('k') | headless/lib/browser/headless_net_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698