OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BLIMP_ENGINE_APP_BLIMP_ENGINE_CRASH_REPORTER_CLIENT_H_ |
| 6 #define BLIMP_ENGINE_APP_BLIMP_ENGINE_CRASH_REPORTER_CLIENT_H_ |
| 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 #include <string> |
| 11 |
| 12 #include "base/macros.h" |
| 13 #include "components/crash/content/app/crash_reporter_client.h" |
| 14 |
| 15 namespace blimp { |
| 16 namespace engine { |
| 17 |
| 18 // Crash reporter client for the Blimp engine. This will always collect crash |
| 19 // reports, and will always upload reports unless running in a "headless" test |
| 20 // mode. |
| 21 // This is intended to be built with a Linux OS target only. |
| 22 class BlimpEngineCrashReporterClient |
| 23 : public crash_reporter::CrashReporterClient { |
| 24 public: |
| 25 BlimpEngineCrashReporterClient(); |
| 26 ~BlimpEngineCrashReporterClient() override; |
| 27 |
| 28 private: |
| 29 // CrashReporterClient implementation. |
| 30 void SetCrashReporterClientIdFromGUID( |
| 31 const std::string& client_guid) override; |
| 32 void GetProductNameAndVersion(const char** product_name, |
| 33 const char** version) override; |
| 34 size_t RegisterCrashKeys() override; |
| 35 bool IsRunningUnattended() override; |
| 36 bool GetCollectStatsConsent() override; |
| 37 bool EnableBreakpadForProcess(const std::string& process_type) override; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(BlimpEngineCrashReporterClient); |
| 40 }; |
| 41 |
| 42 } // namespace engine |
| 43 } // namespace blimp |
| 44 |
| 45 #endif // BLIMP_ENGINE_APP_BLIMP_ENGINE_CRASH_REPORTER_CLIENT_H_ |
OLD | NEW |