blob: e5ae9312cecfc8ad0878c67a92ddd070ca41477e [file] [log] [blame] [edit]
// Copyright (c) 2012 The Chromium OS 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 DEBUGD_SRC_DEBUG_LOGS_TOOL_H_
#define DEBUGD_SRC_DEBUG_LOGS_TOOL_H_
#include <base/files/scoped_file.h>
#include <base/macros.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_;
};
} // namespace debugd
#endif // DEBUGD_SRC_DEBUG_LOGS_TOOL_H_