Mike Frysinger | c087152 | 2013-09-16 14:07:27 -0400 | [diff] [blame] | 1 | // Copyright (c) 2013 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 | |
Alex Vakulenko | 262be3f | 2014-07-30 15:25:50 -0700 | [diff] [blame] | 5 | #ifndef DEBUGD_SRC_CRASH_SENDER_TOOL_H_ |
| 6 | #define DEBUGD_SRC_CRASH_SENDER_TOOL_H_ |
Mike Frysinger | c087152 | 2013-09-16 14:07:27 -0400 | [diff] [blame] | 7 | |
Ben Chan | 657bed8 | 2014-09-02 20:40:51 -0700 | [diff] [blame] | 8 | #include <base/macros.h> |
Mike Frysinger | c087152 | 2013-09-16 14:07:27 -0400 | [diff] [blame] | 9 | #include <dbus-c++/dbus.h> |
| 10 | |
Alex Vakulenko | 262be3f | 2014-07-30 15:25:50 -0700 | [diff] [blame] | 11 | #include "debugd/src/subprocess_tool.h" |
Mike Frysinger | c087152 | 2013-09-16 14:07:27 -0400 | [diff] [blame] | 12 | |
| 13 | namespace debugd { |
| 14 | |
| 15 | class CrashSenderTool : public SubprocessTool { |
| 16 | public: |
Ben Chan | 78f8953 | 2014-08-29 09:35:09 -0700 | [diff] [blame] | 17 | CrashSenderTool() = default; |
| 18 | ~CrashSenderTool() override = default; |
Mike Frysinger | c087152 | 2013-09-16 14:07:27 -0400 | [diff] [blame] | 19 | |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame] | 20 | void UploadCrashes(DBus::Error* error); |
Mike Frysinger | c087152 | 2013-09-16 14:07:27 -0400 | [diff] [blame] | 21 | |
| 22 | private: |
| 23 | DISALLOW_COPY_AND_ASSIGN(CrashSenderTool); |
| 24 | }; |
| 25 | |
| 26 | } // namespace debugd |
| 27 | |
Alex Vakulenko | 262be3f | 2014-07-30 15:25:50 -0700 | [diff] [blame] | 28 | #endif // DEBUGD_SRC_CRASH_SENDER_TOOL_H_ |