| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 CHROME_APP_MASH_MASH_CRASH_REPORTER_CLIENT_H_ |
| 6 #define CHROME_APP_MASH_MASH_CRASH_REPORTER_CLIENT_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "components/crash/content/app/crash_reporter_client.h" |
| 10 |
| 11 #if !defined(OS_CHROMEOS) |
| 12 #error Unsupported platform |
| 13 #endif |
| 14 |
| 15 // Crash reporting support for chrome --mash. Used for the root process, ash, |
| 16 // and other standalone services. Chrome content_browser handles its own crash |
| 17 // reporting via ChromeCrashReporterClient. |
| 18 // TODO(jamescook): Eliminate chrome dependencies from ChromeCrashReporterClient |
| 19 // and share more code with this class. |
| 20 class MashCrashReporterClient : public crash_reporter::CrashReporterClient { |
| 21 public: |
| 22 MashCrashReporterClient(); |
| 23 ~MashCrashReporterClient() override; |
| 24 |
| 25 // crash_reporter::CrashReporterClient implementation. |
| 26 void GetProductNameAndVersion(const char** product_name, |
| 27 const char** version) override; |
| 28 base::FilePath GetReporterLogFilename() override; |
| 29 bool GetCrashDumpLocation(base::FilePath* crash_dir) override; |
| 30 size_t RegisterCrashKeys() override; |
| 31 bool IsRunningUnattended() override; |
| 32 bool GetCollectStatsConsent() override; |
| 33 |
| 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(MashCrashReporterClient); |
| 36 }; |
| 37 |
| 38 #endif // CHROME_APP_MASH_MASH_CRASH_REPORTER_CLIENT_H_ |
| OLD | NEW |