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

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: style nits Created 6 years, 3 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
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..0dfc4755bb3669391a751b28cfe135ff24c46150
--- /dev/null
+++ b/chromecast/crash/android/cast_crash_reporter_client_android.h
@@ -0,0 +1,45 @@
+// 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();
+
+ // Returns a textual description of the product type and version to include
+ // in the crash report.
+ virtual void GetProductNameAndVersion(std::string* product_name,
+ std::string* version) OVERRIDE;
Lei Zhang 2014/10/06 22:44:25 I think we are in the middle of switching from OVE
gunsch 2014/10/09 00:20:55 Done.
+
+ virtual base::FilePath GetReporterLogFilename() OVERRIDE;
+
+ // The location where minidump files should be written. Returns true if
+ // |crash_dir| was set.
+ virtual bool GetCrashDumpLocation(base::FilePath* crash_dir) OVERRIDE;
+
+ // Returns the descriptor key of the android minidump global descriptor.
+ virtual int GetAndroidMinidumpDescriptor() OVERRIDE;
+
+ // Whether or not collecting and reporting stats is okay.
+ 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_

Powered by Google App Engine
This is Rietveld 408576698