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

Unified Diff: chromecast/crash/android/cast_crash_reporter_client_android.h

Issue 620673003: Chromecast: adds crash handling for Android build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address lei's comments Created 6 years, 2 months 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/crash/android/DEPS ('k') | chromecast/crash/android/cast_crash_reporter_client_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/crash/android/cast_crash_reporter_client_android.h
diff --git a/chromecast/crash/android/cast_crash_reporter_client_android.h b/chromecast/crash/android/cast_crash_reporter_client_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..4524ae70a266298505e01b3b1c5c468d792b433f
--- /dev/null
+++ b/chromecast/crash/android/cast_crash_reporter_client_android.h
@@ -0,0 +1,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_CRASH_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_
+#define CHROMECAST_CRASH_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_
+
+#include "base/compiler_specific.h"
+#include "components/crash/app/crash_reporter_client.h"
+
+namespace chromecast {
+
+class CastCrashReporterClientAndroid
+ : public crash_reporter::CrashReporterClient {
+ public:
+ CastCrashReporterClientAndroid();
+ virtual ~CastCrashReporterClientAndroid();
+
+ // crash_reporter::CrashReporterClient implementation:
+ virtual void GetProductNameAndVersion(const char** product_name,
+ const char** version) override;
+ virtual base::FilePath GetReporterLogFilename() override;
+ virtual bool GetCrashDumpLocation(base::FilePath* crash_dir) override;
+ virtual int GetAndroidMinidumpDescriptor() override;
+ virtual bool GetCollectStatsConsent() override;
+ virtual bool EnableBreakpadForProcess(
+ const std::string& process_type) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CastCrashReporterClientAndroid);
+};
+
+} // namespace chromecast
+
+#endif // CHROMECAST_CRASH_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_
« no previous file with comments | « chromecast/crash/android/DEPS ('k') | chromecast/crash/android/cast_crash_reporter_client_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698