blob: 98ee57f1fdc8edb08f51c66e3bbb8581ab004757 [file] [log] [blame]
Elly Jonesa44d22d2012-01-05 18:05:56 -05001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Elly Jones00e439d2011-12-19 16:59:10 -05002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Alex Vakulenko262be3f2014-07-30 15:25:50 -07005#ifndef DEBUGD_SRC_TRACEPATH_TOOL_H_
6#define DEBUGD_SRC_TRACEPATH_TOOL_H_
Elly Jones00e439d2011-12-19 16:59:10 -05007
8#include <map>
9#include <string>
10
Ben Chan657bed82014-09-02 20:40:51 -070011#include <base/macros.h>
Eric Carusocc7106c2017-04-27 14:22:42 -070012#include <brillo/variant_dictionary.h>
13#include <dbus/file_descriptor.h>
Elly Jones00e439d2011-12-19 16:59:10 -050014
Alex Vakulenko262be3f2014-07-30 15:25:50 -070015#include "debugd/src/subprocess_tool.h"
Elly Jones00e439d2011-12-19 16:59:10 -050016
17namespace debugd {
18
Elly Jones00e439d2011-12-19 16:59:10 -050019class TracePathTool : public SubprocessTool {
20 public:
Ben Chan78f89532014-08-29 09:35:09 -070021 TracePathTool() = default;
22 ~TracePathTool() override = default;
Elly Jones00e439d2011-12-19 16:59:10 -050023
Eric Carusocc7106c2017-04-27 14:22:42 -070024 std::string Start(const dbus::FileDescriptor& outfd,
Elly Jones00e439d2011-12-19 16:59:10 -050025 const std::string& destination,
Eric Carusocc7106c2017-04-27 14:22:42 -070026 const brillo::VariantDictionary& options);
Ben Chan657bed82014-09-02 20:40:51 -070027
28 private:
29 DISALLOW_COPY_AND_ASSIGN(TracePathTool);
Elly Jones00e439d2011-12-19 16:59:10 -050030};
31
Ben Chana0011d82014-05-13 00:19:29 -070032} // namespace debugd
Elly Jones00e439d2011-12-19 16:59:10 -050033
Alex Vakulenko262be3f2014-07-30 15:25:50 -070034#endif // DEBUGD_SRC_TRACEPATH_TOOL_H_