OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_WIN_H_ | 5 #ifndef CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_ |
6 #define CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_ | 6 #define CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <memory> | 9 #include <memory> |
grt (UTC plus 2)
2016/04/26 17:01:33
unused
Sigurður Ásgeirsson
2016/04/26 17:28:03
Done.
| |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
grt (UTC plus 2)
2016/04/26 17:01:33
unused?
Sigurður Ásgeirsson
2016/04/26 17:28:03
Done.
| |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
grt (UTC plus 2)
2016/04/26 17:01:33
unused
Sigurður Ásgeirsson
2016/04/26 17:28:03
Done.
| |
14 #include "components/crash/content/app/crash_reporter_client.h" | 14 #include "components/crash/content/app/crash_reporter_client.h" |
15 | 15 |
16 namespace browser_watcher { | |
17 class CrashReportingMetrics; | |
18 } // namespace browser_watcher | |
19 | |
20 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient { | 16 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient { |
21 public: | 17 public: |
22 ChromeCrashReporterClient(); | 18 ChromeCrashReporterClient(); |
23 ~ChromeCrashReporterClient() override; | 19 ~ChromeCrashReporterClient() override; |
24 | 20 |
25 // crash_reporter::CrashReporterClient implementation. | 21 // crash_reporter::CrashReporterClient implementation. |
26 bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir) override; | 22 bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir) override; |
27 void GetProductNameAndVersion(const base::FilePath& exe_path, | 23 void GetProductNameAndVersion(const base::FilePath& exe_path, |
28 base::string16* product_name, | 24 base::string16* product_name, |
29 base::string16* version, | 25 base::string16* version, |
30 base::string16* special_build, | 26 base::string16* special_build, |
31 base::string16* channel_name) override; | 27 base::string16* channel_name) override; |
32 bool ShouldShowRestartDialog(base::string16* title, | 28 bool ShouldShowRestartDialog(base::string16* title, |
33 base::string16* message, | 29 base::string16* message, |
34 bool* is_rtl_locale) override; | 30 bool* is_rtl_locale) override; |
35 bool AboutToRestart() override; | 31 bool AboutToRestart() override; |
36 bool GetDeferredUploadsSupported(bool is_per_user_install) override; | 32 bool GetDeferredUploadsSupported(bool is_per_user_install) override; |
37 bool GetIsPerUserInstall(const base::FilePath& exe_path) override; | 33 bool GetIsPerUserInstall(const base::FilePath& exe_path) override; |
38 bool GetShouldDumpLargerDumps(bool is_per_user_install) override; | 34 bool GetShouldDumpLargerDumps(bool is_per_user_install) override; |
39 int GetResultCodeRespawnFailed() override; | 35 int GetResultCodeRespawnFailed() override; |
40 void InitBrowserCrashDumpsRegKey() override; | |
41 void RecordCrashDumpAttempt(bool is_real_crash) override; | 36 void RecordCrashDumpAttempt(bool is_real_crash) override; |
grt (UTC plus 2)
2016/04/26 17:01:33
could these be removed from CrashReporterClient al
Sigurður Ásgeirsson
2016/04/26 17:28:03
Yups - so removed.
| |
42 void RecordCrashDumpAttemptResult(bool is_real_crash, | 37 void RecordCrashDumpAttemptResult(bool is_real_crash, |
43 bool succeeded) override; | 38 bool succeeded) override; |
44 | 39 |
45 bool GetCrashDumpLocation(base::FilePath* crash_dir) override; | 40 bool GetCrashDumpLocation(base::FilePath* crash_dir) override; |
46 | 41 |
47 size_t RegisterCrashKeys() override; | 42 size_t RegisterCrashKeys() override; |
48 | 43 |
49 bool IsRunningUnattended() override; | 44 bool IsRunningUnattended() override; |
50 | 45 |
51 bool GetCollectStatsConsent() override; | 46 bool GetCollectStatsConsent() override; |
52 | 47 |
53 bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled) override; | 48 bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled) override; |
54 | 49 |
55 bool EnableBreakpadForProcess(const std::string& process_type) override; | 50 bool EnableBreakpadForProcess(const std::string& process_type) override; |
56 | 51 |
57 private: | 52 private: |
58 std::unique_ptr<browser_watcher::CrashReportingMetrics> | |
59 crash_reporting_metrics_; | |
60 | |
61 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient); | 53 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient); |
62 }; | 54 }; |
63 | 55 |
64 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_ | 56 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_ |
OLD | NEW |