Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: chrome/app/chrome_crash_reporter_client.h

Issue 1904613002: Preparation patch for moving the chrome crashpad integration into chrome_elf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
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 { 16 namespace browser_watcher {
17 class CrashReportingMetrics; 17 class CrashReportingMetrics;
18 } // namespace browser_watcher 18 } // namespace browser_watcher
19 19
20 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient { 20 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient {
21 public: 21 public:
22 ChromeCrashReporterClient(); 22 ChromeCrashReporterClient();
23 ~ChromeCrashReporterClient() override; 23 ~ChromeCrashReporterClient() override;
24 24
25 // crash_reporter::CrashReporterClient implementation. 25 // crash_reporter::CrashReporterClient implementation.
26 #if !defined(OS_MACOSX) && !defined(OS_WIN) 26 #if !defined(OS_MACOSX)
27 void SetCrashReporterClientIdFromGUID( 27 void SetCrashReporterClientIdFromGUID(
28 const std::string& client_guid) override; 28 const std::string& client_guid) override;
29 #endif 29 #endif
30 #if defined(OS_WIN)
31 bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir) override;
32 void GetProductNameAndVersion(const base::FilePath& exe_path,
33 base::string16* product_name,
34 base::string16* version,
35 base::string16* special_build,
36 base::string16* channel_name) override;
37 bool ShouldShowRestartDialog(base::string16* title,
38 base::string16* message,
39 bool* is_rtl_locale) override;
40 bool AboutToRestart() override;
41 bool GetDeferredUploadsSupported(bool is_per_user_install) override;
42 bool GetIsPerUserInstall(const base::FilePath& exe_path) override;
43 bool GetShouldDumpLargerDumps(bool is_per_user_install) override;
44 int GetResultCodeRespawnFailed() override;
45 void InitBrowserCrashDumpsRegKey() override;
46 void RecordCrashDumpAttempt(bool is_real_crash) override;
47 void RecordCrashDumpAttemptResult(bool is_real_crash,
48 bool succeeded) override;
49 #endif
50 30
51 #if defined(OS_POSIX) && !defined(OS_MACOSX) 31 #if defined(OS_POSIX) && !defined(OS_MACOSX)
52 void GetProductNameAndVersion(const char** product_name, 32 void GetProductNameAndVersion(const char** product_name,
53 const char** version) override; 33 const char** version) override;
54 base::FilePath GetReporterLogFilename() override; 34 base::FilePath GetReporterLogFilename() override;
55 #endif 35 #endif
56 36
57 bool GetCrashDumpLocation(base::FilePath* crash_dir) override; 37 bool GetCrashDumpLocation(base::FilePath* crash_dir) override;
58 38
59 size_t RegisterCrashKeys() override; 39 size_t RegisterCrashKeys() override;
60 40
61 bool IsRunningUnattended() override; 41 bool IsRunningUnattended() override;
62 42
63 bool GetCollectStatsConsent() override; 43 bool GetCollectStatsConsent() override;
64 44
65 #if defined(OS_WIN) || defined(OS_MACOSX) 45 #if defined(OS_MACOSX)
66 bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled) override; 46 bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled) override;
67 #endif 47 #endif
68 48
69 #if defined(OS_ANDROID) 49 #if defined(OS_ANDROID)
70 int GetAndroidMinidumpDescriptor() override; 50 int GetAndroidMinidumpDescriptor() override;
71 #endif 51 #endif
72 52
73 bool EnableBreakpadForProcess(const std::string& process_type) override; 53 bool EnableBreakpadForProcess(const std::string& process_type) override;
74 54
75 private: 55 private:
76 #if defined(OS_WIN)
77 scoped_ptr<browser_watcher::CrashReportingMetrics> crash_reporting_metrics_;
78 #endif
79
80 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient); 56 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient);
81 }; 57 };
82 58
83 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_ 59 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698