blob: 4b4904c93559d5e71ba14aab2b5d267dd60ffdc2 [file] [log] [blame] [edit]
// Copyright 2012 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEBUGD_SRC_DEBUG_LOGS_TOOL_H_
#define DEBUGD_SRC_DEBUG_LOGS_TOOL_H_
#include <base/files/scoped_file.h>
#include <dbus/bus.h>
namespace debugd {
class DebugLogsTool {
public:
explicit DebugLogsTool(scoped_refptr<dbus::Bus> bus) : bus_(bus) {}
DebugLogsTool(const DebugLogsTool&) = delete;
DebugLogsTool& operator=(const DebugLogsTool&) = delete;
~DebugLogsTool() = default;
void GetDebugLogs(bool is_compressed, const base::ScopedFD& fd);
private:
scoped_refptr<dbus::Bus> bus_;
bool perf_logging_;
};
} // namespace debugd
#endif // DEBUGD_SRC_DEBUG_LOGS_TOOL_H_