| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_ | 5 #ifndef CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_ |
| 6 #define CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_ | 6 #define CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "components/crash/app/crash_reporter_client.h" | 11 #include "components/crash/app/crash_reporter_client.h" |
| 12 | 12 |
| 13 namespace browser_watcher { | 13 namespace browser_watcher { |
| 14 class CrashReportingMetrics; | 14 class CrashReportingMetrics; |
| 15 } // namespace browser_watcher | 15 } // namespace browser_watcher |
| 16 | 16 |
| 17 namespace chrome { | 17 namespace chrome { |
| 18 | 18 |
| 19 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient { | 19 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient { |
| 20 public: | 20 public: |
| 21 ChromeCrashReporterClient(); | 21 ChromeCrashReporterClient(); |
| 22 ~ChromeCrashReporterClient() override; | 22 ~ChromeCrashReporterClient() override; |
| 23 | 23 |
| 24 // crash_reporter::CrashReporterClient implementation. | 24 // crash_reporter::CrashReporterClient implementation. |
| 25 #if !defined(OS_MACOSX) | 25 #if !defined(OS_MACOSX) |
| 26 void SetCrashReporterClientIdFromGUID( | 26 void SetCrashReporterClientIdFromGUID( |
| 27 const std::string& client_guid) override; | 27 const std::string& client_guid) override; |
| 28 #endif | 28 #endif |
| 29 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
| 30 virtual bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir) | 30 bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir) override; |
| 31 override; | 31 void GetProductNameAndVersion(const base::FilePath& exe_path, |
| 32 virtual void GetProductNameAndVersion(const base::FilePath& exe_path, | 32 base::string16* product_name, |
| 33 base::string16* product_name, | 33 base::string16* version, |
| 34 base::string16* version, | 34 base::string16* special_build, |
| 35 base::string16* special_build, | 35 base::string16* channel_name) override; |
| 36 base::string16* channel_name) override; | 36 bool ShouldShowRestartDialog(base::string16* title, |
| 37 virtual bool ShouldShowRestartDialog(base::string16* title, | 37 base::string16* message, |
| 38 base::string16* message, | 38 bool* is_rtl_locale) override; |
| 39 bool* is_rtl_locale) override; | 39 bool AboutToRestart() override; |
| 40 virtual bool AboutToRestart() override; | 40 bool GetDeferredUploadsSupported(bool is_per_user_install) override; |
| 41 virtual bool GetDeferredUploadsSupported(bool is_per_user_install) override; | 41 bool GetIsPerUserInstall(const base::FilePath& exe_path) override; |
| 42 virtual bool GetIsPerUserInstall(const base::FilePath& exe_path) override; | 42 bool GetShouldDumpLargerDumps(bool is_per_user_install) override; |
| 43 virtual bool GetShouldDumpLargerDumps(bool is_per_user_install) override; | 43 int GetResultCodeRespawnFailed() override; |
| 44 virtual int GetResultCodeRespawnFailed() override; | 44 void InitBrowserCrashDumpsRegKey() override; |
| 45 virtual void InitBrowserCrashDumpsRegKey() override; | 45 void RecordCrashDumpAttempt(bool is_real_crash) override; |
| 46 virtual void RecordCrashDumpAttempt(bool is_real_crash) override; | 46 void RecordCrashDumpAttemptResult(bool is_real_crash, |
| 47 virtual void RecordCrashDumpAttemptResult(bool is_real_crash, | 47 bool succeeded) override; |
| 48 bool succeeded) override; | |
| 49 #endif | 48 #endif |
| 50 | 49 |
| 51 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) | 50 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) |
| 52 void GetProductNameAndVersion(const char** product_name, | 51 void GetProductNameAndVersion(const char** product_name, |
| 53 const char** version) override; | 52 const char** version) override; |
| 54 base::FilePath GetReporterLogFilename() override; | 53 base::FilePath GetReporterLogFilename() override; |
| 55 #endif | 54 #endif |
| 56 | 55 |
| 57 bool GetCrashDumpLocation(base::FilePath* crash_dir) override; | 56 bool GetCrashDumpLocation(base::FilePath* crash_dir) override; |
| 58 | 57 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 76 #if defined(OS_WIN) | 75 #if defined(OS_WIN) |
| 77 scoped_ptr<browser_watcher::CrashReportingMetrics> crash_reporting_metrics_; | 76 scoped_ptr<browser_watcher::CrashReportingMetrics> crash_reporting_metrics_; |
| 78 #endif | 77 #endif |
| 79 | 78 |
| 80 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient); | 79 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient); |
| 81 }; | 80 }; |
| 82 | 81 |
| 83 } // namespace chrome | 82 } // namespace chrome |
| 84 | 83 |
| 85 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_ | 84 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_ |
| OLD | NEW |