Elly Jones | e7cb5b3 | 2011-12-01 14:18:32 -0500 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef PING_TOOL_H |
| 6 | #define PING_TOOL_H |
| 7 | |
| 8 | #include <map> |
| 9 | #include <string> |
| 10 | |
| 11 | #include <base/basictypes.h> |
| 12 | #include <dbus-c++/dbus.h> |
| 13 | |
Elly Jones | 0c016cc | 2011-12-19 16:19:22 -0500 | [diff] [blame^] | 14 | #include "subprocess_tool.h" |
| 15 | |
Elly Jones | e7cb5b3 | 2011-12-01 14:18:32 -0500 | [diff] [blame] | 16 | namespace debugd { |
| 17 | |
| 18 | class ProcessWithId; |
| 19 | |
Elly Jones | 0c016cc | 2011-12-19 16:19:22 -0500 | [diff] [blame^] | 20 | class PingTool : public SubprocessTool { |
Elly Jones | e7cb5b3 | 2011-12-01 14:18:32 -0500 | [diff] [blame] | 21 | public: |
| 22 | PingTool(); |
| 23 | ~PingTool(); |
| 24 | |
| 25 | std::string Start(const DBus::FileDescriptor& outfd, |
| 26 | const std::string& destination, |
| 27 | const std::map<std::string, DBus::Variant>& options, |
| 28 | DBus::Error& error); |
Elly Jones | e7cb5b3 | 2011-12-01 14:18:32 -0500 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | }; // namespace debugd |
| 32 | |
| 33 | #endif // PING_TOOL_H |