blob: df610ee6ff43bfd7be4eadcde488882e91b9d5c4 [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
Elly Jones00e439d2011-12-19 16:59:10 -05008#include <string>
9
Ben Chan657bed82014-09-02 20:40:51 -070010#include <base/macros.h>
Eric Carusocc7106c2017-04-27 14:22:42 -070011#include <brillo/variant_dictionary.h>
Elly Jones00e439d2011-12-19 16:59:10 -050012
Alex Vakulenko262be3f2014-07-30 15:25:50 -070013#include "debugd/src/subprocess_tool.h"
Elly Jones00e439d2011-12-19 16:59:10 -050014
15namespace debugd {
16
Elly Jones00e439d2011-12-19 16:59:10 -050017class TracePathTool : public SubprocessTool {
18 public:
Ben Chan78f89532014-08-29 09:35:09 -070019 TracePathTool() = default;
Qijiang Fan6bc59e12020-11-11 02:51:06 +090020 TracePathTool(const TracePathTool&) = delete;
21 TracePathTool& operator=(const TracePathTool&) = delete;
22
Ben Chan78f89532014-08-29 09:35:09 -070023 ~TracePathTool() override = default;
Elly Jones00e439d2011-12-19 16:59:10 -050024
Eric Caruso0b241882018-04-04 13:43:46 -070025 std::string Start(const base::ScopedFD& outfd,
Elly Jones00e439d2011-12-19 16:59:10 -050026 const std::string& destination,
Eric Carusocc7106c2017-04-27 14:22:42 -070027 const brillo::VariantDictionary& options);
Elly Jones00e439d2011-12-19 16:59:10 -050028};
29
Ben Chana0011d82014-05-13 00:19:29 -070030} // namespace debugd
Elly Jones00e439d2011-12-19 16:59:10 -050031
Alex Vakulenko262be3f2014-07-30 15:25:50 -070032#endif // DEBUGD_SRC_TRACEPATH_TOOL_H_