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

Unified Diff: blimp/engine/app/blimp_engine_crash_reporter_client.h

Issue 1925993004: Initial addition of Blimp engine crash client code (take 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with head and resolve conflicts Created 4 years, 7 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 | « blimp/engine/app/blimp_engine_crash_keys.cc ('k') | blimp/engine/app/blimp_engine_crash_reporter_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/blimp_engine_crash_reporter_client.h
diff --git a/blimp/engine/app/blimp_engine_crash_reporter_client.h b/blimp/engine/app/blimp_engine_crash_reporter_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..c76b8369f5fc72d91dfa6c24d5ab37e3d6f5b65a
--- /dev/null
+++ b/blimp/engine/app/blimp_engine_crash_reporter_client.h
@@ -0,0 +1,45 @@
+// Copyright 2016 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 BLIMP_ENGINE_APP_BLIMP_ENGINE_CRASH_REPORTER_CLIENT_H_
+#define BLIMP_ENGINE_APP_BLIMP_ENGINE_CRASH_REPORTER_CLIENT_H_
+
+#include <stddef.h>
+
+#include <string>
+
+#include "base/macros.h"
+#include "components/crash/content/app/crash_reporter_client.h"
+
+namespace blimp {
+namespace engine {
+
+// Crash reporter client for the Blimp engine. This will always collect crash
+// reports, and will always upload reports unless running in a "headless" test
+// mode.
+// This is intended to be built with a Linux OS target only.
+class BlimpEngineCrashReporterClient
+ : public crash_reporter::CrashReporterClient {
+ public:
+ BlimpEngineCrashReporterClient();
+ ~BlimpEngineCrashReporterClient() override;
+
+ private:
+ // CrashReporterClient implementation.
+ void SetCrashReporterClientIdFromGUID(
+ const std::string& client_guid) override;
+ void GetProductNameAndVersion(const char** product_name,
+ const char** version) override;
+ size_t RegisterCrashKeys() override;
+ bool IsRunningUnattended() override;
+ bool GetCollectStatsConsent() override;
+ bool EnableBreakpadForProcess(const std::string& process_type) override;
+
+ DISALLOW_COPY_AND_ASSIGN(BlimpEngineCrashReporterClient);
+};
+
+} // namespace engine
+} // namespace blimp
+
+#endif // BLIMP_ENGINE_APP_BLIMP_ENGINE_CRASH_REPORTER_CLIENT_H_
« no previous file with comments | « blimp/engine/app/blimp_engine_crash_keys.cc ('k') | blimp/engine/app/blimp_engine_crash_reporter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698