blob: ef9f90042d1af20f28e24c7890574688ff68632d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMECAST_APP_LINUX_CAST_CRASH_REPORTER_CLIENT_H_
#define CHROMECAST_APP_LINUX_CAST_CRASH_REPORTER_CLIENT_H_
#include <string>
#include "base/macros.h"
#include "components/crash/content/app/crash_reporter_client.h"
namespace chromecast {
class CastCrashReporterClient : public crash_reporter::CrashReporterClient {
public:
static void InitCrashReporter(const std::string& process_type);
CastCrashReporterClient();
~CastCrashReporterClient() override;
// crash_reporter::CrashReporterClient implementation:
bool EnableBreakpadForProcess(const std::string& process_type) override;
bool HandleCrashDump(const char* crashdump_filename) override;
private:
static const char* GetProcessType();
static uint64_t GetProcessStartTime();
DISALLOW_COPY_AND_ASSIGN(CastCrashReporterClient);
};
} // namespace chromecast
#endif // CHROMECAST_APP_LINUX_CAST_CRASH_REPORTER_CLIENT_H_
|