1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31

fuchsia_web / webengine / browser / web_engine_net_log_observer.h [blame]

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FUCHSIA_WEB_WEBENGINE_BROWSER_WEB_ENGINE_NET_LOG_OBSERVER_H_
#define FUCHSIA_WEB_WEBENGINE_BROWSER_WEB_ENGINE_NET_LOG_OBSERVER_H_

#include <memory>

namespace base {
class FilePath;
}  // namespace base

namespace net {
class FileNetLogObserver;
}  // namespace net

class WebEngineNetLogObserver {
 public:
  explicit WebEngineNetLogObserver(const base::FilePath& log_path);

  WebEngineNetLogObserver(const WebEngineNetLogObserver&) = delete;
  WebEngineNetLogObserver& operator=(const WebEngineNetLogObserver&) = delete;

  ~WebEngineNetLogObserver();

 private:
  std::unique_ptr<net::FileNetLogObserver> file_net_log_observer_;
};

#endif  // FUCHSIA_WEB_WEBENGINE_BROWSER_WEB_ENGINE_NET_LOG_OBSERVER_H_