| 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 void SetCrashReporterClientIdFromGUID( | |
| 29 const std::string& client_guid) override; | |
| 30 void GetProductNameAndVersion(const char** product_name, | |
| 31 const char** version) override; | |
| 32 size_t RegisterCrashKeys() override; | |
| 33 bool IsRunningUnattended() override; | |
| 34 bool GetCollectStatsConsent() override; | |
| 35 bool EnableBreakpadForProcess(const std::string& process_type) override; | |
| 36 | |
| 37 private: | |
| 38 DISALLOW_COPY_AND_ASSIGN(BlimpEngineCrashReporterClient); | |
| 39 }; | |
| 40 | |
| 41 } // namespace engine | |
| 42 } // namespace blimp | |
| 43 | |
| 44 #endif // BLIMP_ENGINE_APP_BLIMP_ENGINE_CRASH_REPORTER_CLIENT_H_ | |
| OLD | NEW |