blob: 85dc825c2627c20006e8ceca25544619035ff8ce [file] [log] [blame]
// 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() = default;
void GetDebugLogs(bool is_compressed,
const base::ScopedFD& fd);
private:
scoped_refptr<dbus::Bus> bus_;
DISALLOW_COPY_AND_ASSIGN(DebugLogsTool);
};
} // namespace debugd
#endif // DEBUGD_SRC_DEBUG_LOGS_TOOL_H_