| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_INSTALLER_SETUP_INSTALLER_CRASH_REPORTER_CLIENT_H_ | 5 #ifndef CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTER_CLIENT_H_ |
| 6 #define CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTER_CLIENT_H_ | 6 #define CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "components/crash/content/app/crash_reporter_client.h" | 11 #include "components/crash/content/app/crash_reporter_client.h" |
| 12 | 12 |
| 13 class InstallerCrashReporterClient | 13 class InstallerCrashReporterClient |
| 14 : public crash_reporter::CrashReporterClient { | 14 : public crash_reporter::CrashReporterClient { |
| 15 public: | 15 public: |
| 16 explicit InstallerCrashReporterClient(bool is_per_user_install); | 16 explicit InstallerCrashReporterClient(bool is_per_user_install); |
| 17 ~InstallerCrashReporterClient() override; | 17 ~InstallerCrashReporterClient() override; |
| 18 | 18 |
| 19 // crash_reporter::CrashReporterClient methods: | 19 // crash_reporter::CrashReporterClient methods: |
| 20 bool ShouldCreatePipeName(const base::string16& process_type) override; | 20 bool ShouldCreatePipeName(const base::string16& process_type) override; |
| 21 bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir) override; | 21 bool GetAlternativeCrashDumpLocation(base::string16* crash_dir) override; |
| 22 void GetProductNameAndVersion(const base::FilePath& exe_path, | 22 void GetProductNameAndVersion(const base::string16& exe_path, |
| 23 base::string16* product_name, | 23 base::string16* product_name, |
| 24 base::string16* version, | 24 base::string16* version, |
| 25 base::string16* special_build, | 25 base::string16* special_build, |
| 26 base::string16* channel_name) override; | 26 base::string16* channel_name) override; |
| 27 bool ShouldShowRestartDialog(base::string16* title, | 27 bool ShouldShowRestartDialog(base::string16* title, |
| 28 base::string16* message, | 28 base::string16* message, |
| 29 bool* is_rtl_locale) override; | 29 bool* is_rtl_locale) override; |
| 30 bool AboutToRestart() override; | 30 bool AboutToRestart() override; |
| 31 bool GetDeferredUploadsSupported(bool is_per_user_install) override; | 31 bool GetDeferredUploadsSupported(bool is_per_user_install) override; |
| 32 bool GetIsPerUserInstall(const base::FilePath& exe_path) override; | 32 bool GetIsPerUserInstall(const base::string16& exe_path) override; |
| 33 bool GetShouldDumpLargerDumps(bool is_per_user_install) override; | 33 bool GetShouldDumpLargerDumps(bool is_per_user_install) override; |
| 34 int GetResultCodeRespawnFailed() override; | 34 int GetResultCodeRespawnFailed() override; |
| 35 bool GetCrashDumpLocation(base::FilePath* crash_dir) override; | 35 bool GetCrashDumpLocation(base::string16* crash_dir) override; |
| 36 size_t RegisterCrashKeys() override; | 36 size_t RegisterCrashKeys() override; |
| 37 bool IsRunningUnattended() override; | 37 bool IsRunningUnattended() override; |
| 38 bool GetCollectStatsConsent() override; | 38 bool GetCollectStatsConsent() override; |
| 39 bool ReportingIsEnforcedByPolicy(bool* enabled) override; | 39 bool ReportingIsEnforcedByPolicy(bool* enabled) override; |
| 40 bool EnableBreakpadForProcess(const std::string& process_type) override; | 40 bool EnableBreakpadForProcess(const std::string& process_type) override; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 bool is_per_user_install_; | 43 bool is_per_user_install_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(InstallerCrashReporterClient); | 45 DISALLOW_COPY_AND_ASSIGN(InstallerCrashReporterClient); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTER_CLIENT_H_ | 48 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTER_CLIENT_H_ |
| OLD | NEW |