Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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 CHROMECAST_CRASH_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_ | |
| 6 #define CHROMECAST_CRASH_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "components/crash/app/crash_reporter_client.h" | |
| 10 | |
| 11 namespace chromecast { | |
| 12 | |
| 13 class CastCrashReporterClientAndroid | |
| 14 : public crash_reporter::CrashReporterClient { | |
| 15 public: | |
| 16 CastCrashReporterClientAndroid(); | |
| 17 virtual ~CastCrashReporterClientAndroid(); | |
| 18 | |
| 19 // Returns a textual description of the product type and version to include | |
| 20 // in the crash report. | |
| 21 virtual void GetProductNameAndVersion(std::string* product_name, | |
| 22 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.
| |
| 23 | |
| 24 virtual base::FilePath GetReporterLogFilename() OVERRIDE; | |
| 25 | |
| 26 // The location where minidump files should be written. Returns true if | |
| 27 // |crash_dir| was set. | |
| 28 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir) OVERRIDE; | |
| 29 | |
| 30 // Returns the descriptor key of the android minidump global descriptor. | |
| 31 virtual int GetAndroidMinidumpDescriptor() OVERRIDE; | |
| 32 | |
| 33 // Whether or not collecting and reporting stats is okay. | |
| 34 virtual bool GetCollectStatsConsent() OVERRIDE; | |
| 35 | |
| 36 virtual bool EnableBreakpadForProcess( | |
| 37 const std::string& process_type) OVERRIDE; | |
| 38 | |
| 39 private: | |
| 40 DISALLOW_COPY_AND_ASSIGN(CastCrashReporterClientAndroid); | |
| 41 }; | |
| 42 | |
| 43 } // namespace chromecast | |
| 44 | |
| 45 #endif // CHROMECAST_CRASH_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_ | |
| OLD | NEW |