Elly Jones | 0c016cc | 2011-12-19 16:19:22 -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 SUBPROCESS_TOOL_H |
| 6 | #define SUBPROCESS_TOOL_H |
| 7 | |
| 8 | #include <map> |
| 9 | #include <string> |
| 10 | |
| 11 | #include <base/basictypes.h> |
| 12 | #include <dbus-c++/dbus.h> |
| 13 | |
| 14 | namespace debugd { |
| 15 | |
| 16 | class ProcessWithId; |
| 17 | |
| 18 | class SubprocessTool { |
| 19 | public: |
| 20 | SubprocessTool(); |
| 21 | virtual ~SubprocessTool(); |
| 22 | |
| 23 | virtual ProcessWithId* CreateProcess(); |
| 24 | virtual void Stop(const std::string& handle, DBus::Error& error); |
| 25 | private: |
| 26 | std::map<std::string, ProcessWithId*> processes_; |
| 27 | DISALLOW_COPY_AND_ASSIGN(SubprocessTool); |
| 28 | }; |
| 29 | |
| 30 | }; // namespace debugd |
| 31 | |
| 32 | #endif // SUBPROCESS_TOOL_H |