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 // Public interface for enabling Breakpad on Linux systems. | 5 // Public interface for enabling Breakpad on Linux systems. |
6 | 6 |
7 #ifndef COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ | 7 #ifndef COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ |
8 #define COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ | 8 #define COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 | 13 |
14 namespace breakpad { | 14 namespace breakpad { |
15 | 15 |
16 // Turns on the crash reporter in any process. | 16 // Turns on the crash reporter in any process. |
17 extern void InitCrashReporter(const std::string& process_type); | 17 extern void InitCrashReporter(const std::string& process_type); |
18 | 18 |
19 #if defined(OS_ANDROID) | 19 #if defined(OS_ANDROID) |
| 20 extern void InitCrashKeysForTesting(); |
| 21 |
20 struct SanitizationInfo { | 22 struct SanitizationInfo { |
21 bool should_sanitize_dumps = false; | 23 bool should_sanitize_dumps = false; |
22 bool skip_dump_if_principal_mapping_not_referenced = false; | 24 bool skip_dump_if_principal_mapping_not_referenced = false; |
23 uintptr_t address_within_principal_mapping = 0; | 25 uintptr_t address_within_principal_mapping = 0; |
24 }; | 26 }; |
25 | 27 |
26 // Turns on the crash reporter in any process. | 28 // Turns on the crash reporter in any process. |
27 extern void InitCrashReporter(const std::string& process_type, | 29 extern void InitCrashReporter(const std::string& process_type, |
28 const SanitizationInfo& sanitization_info); | 30 const SanitizationInfo& sanitization_info); |
29 | 31 |
(...skipping 25 matching lines...) Expand all Loading... |
55 // Checks if crash reporting is enabled. Note that this is not the same as | 57 // Checks if crash reporting is enabled. Note that this is not the same as |
56 // being opted into metrics reporting (and crash reporting), which controls | 58 // being opted into metrics reporting (and crash reporting), which controls |
57 // whether InitCrashReporter() is called. | 59 // whether InitCrashReporter() is called. |
58 bool IsCrashReporterEnabled(); | 60 bool IsCrashReporterEnabled(); |
59 | 61 |
60 // Generates a minidump on demand for this process, writing it to |dump_fd|. | 62 // Generates a minidump on demand for this process, writing it to |dump_fd|. |
61 void GenerateMinidumpOnDemandForAndroid(int dump_fd); | 63 void GenerateMinidumpOnDemandForAndroid(int dump_fd); |
62 } // namespace breakpad | 64 } // namespace breakpad |
63 | 65 |
64 #endif // COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ | 66 #endif // COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ |
OLD | NEW |