Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Unified Diff: chromecast/crash/cast_crash_reporter_client.h

Issue 731933005: Chromecast: adds crash handling for Linux build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/chromecast.gyp ('k') | chromecast/crash/cast_crash_reporter_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/crash/cast_crash_reporter_client.h
diff --git a/chromecast/crash/cast_crash_reporter_client.h b/chromecast/crash/cast_crash_reporter_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..62c974d2f6ea8ab713c020b4c124dd77b57f6b7d
--- /dev/null
+++ b/chromecast/crash/cast_crash_reporter_client.h
@@ -0,0 +1,36 @@
+// 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_CRASH_CAST_CRASH_REPORTER_CLIENT_H_
+#define CHROMECAST_CRASH_CAST_CRASH_REPORTER_CLIENT_H_
+
+#include <string>
+
+#include "base/macros.h"
+#include "components/crash/app/crash_reporter_client.h"
+
+namespace chromecast {
+
+class CastCrashReporterClient : public crash_reporter::CrashReporterClient {
+ public:
+ static void InitCrashReporter(const std::string& process_type);
+
+ CastCrashReporterClient();
+ virtual ~CastCrashReporterClient();
+
+ // crash_reporter::CrashReporterClient implementation:
+ virtual bool EnableBreakpadForProcess(
+ const std::string& process_type) override;
+ virtual bool HandleCrashDump(const char* crashdump_filename) override;
+
+ private:
+ static char* GetProcessType();
+ static uint64_t GetProcessStartTime();
+
+ DISALLOW_COPY_AND_ASSIGN(CastCrashReporterClient);
+};
+
+} // namespace chromecast
+
+#endif // CHROMECAST_CRASH_CAST_CRASH_REPORTER_CLIENT_H_
« no previous file with comments | « chromecast/chromecast.gyp ('k') | chromecast/crash/cast_crash_reporter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698