#ifndef CHROMECAST_APP_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_
#define CHROMECAST_APP_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_
#include <stddef.h>
#include "base/compiler_specific.h"
#include "components/crash/core/app/crash_reporter_client.h"
namespace chromecast {
class CastCrashReporterClientAndroid
: public crash_reporter::CrashReporterClient {
public:
explicit CastCrashReporterClientAndroid(const std::string& process_type);
CastCrashReporterClientAndroid(const CastCrashReporterClientAndroid&) =
delete;
CastCrashReporterClientAndroid& operator=(
const CastCrashReporterClientAndroid&) = delete;
~CastCrashReporterClientAndroid() override;
static bool GetCrashReportsLocation(const std::string& process_type,
base::FilePath* crash_dir);
void GetProductInfo(ProductInfo* product_info) override;
base::FilePath GetReporterLogFilename() override;
bool GetCrashDumpLocation(base::FilePath* crash_dir) override;
bool EnableBreakpadForProcess(const std::string& process_type) override;
private:
std::string process_type_;
};
}
#endif