blob: ba9e8b031b5a650f68dfff8426ed6ea7f7b873cf [file] [log] [blame]
Mike Frysingerc0871522013-09-16 14:07:27 -04001// 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 Vakulenko262be3f2014-07-30 15:25:50 -07005#ifndef DEBUGD_SRC_CRASH_SENDER_TOOL_H_
6#define DEBUGD_SRC_CRASH_SENDER_TOOL_H_
Mike Frysingerc0871522013-09-16 14:07:27 -04007
Ben Chan657bed82014-09-02 20:40:51 -07008#include <base/macros.h>
Mike Frysingerc0871522013-09-16 14:07:27 -04009#include <dbus-c++/dbus.h>
10
Alex Vakulenko262be3f2014-07-30 15:25:50 -070011#include "debugd/src/subprocess_tool.h"
Mike Frysingerc0871522013-09-16 14:07:27 -040012
13namespace debugd {
14
15class CrashSenderTool : public SubprocessTool {
16 public:
Ben Chan78f89532014-08-29 09:35:09 -070017 CrashSenderTool() = default;
18 ~CrashSenderTool() override = default;
Mike Frysingerc0871522013-09-16 14:07:27 -040019
Ben Chana0011d82014-05-13 00:19:29 -070020 void UploadCrashes(DBus::Error* error);
Mike Frysingerc0871522013-09-16 14:07:27 -040021
22 private:
23 DISALLOW_COPY_AND_ASSIGN(CrashSenderTool);
24};
25
26} // namespace debugd
27
Alex Vakulenko262be3f2014-07-30 15:25:50 -070028#endif // DEBUGD_SRC_CRASH_SENDER_TOOL_H_