| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BREAKPAD_LINUX_H_ | 5 #ifndef CHROME_APP_BREAKPAD_LINUX_H_ |
| 6 #define CHROME_APP_BREAKPAD_LINUX_H_ | 6 #define CHROME_APP_BREAKPAD_LINUX_H_ |
| 7 | 7 |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 | 11 |
| 12 extern void InitCrashReporter(); | 12 extern void InitCrashReporter(); |
| 13 #if defined(OS_ANDROID) | 13 #if defined(OS_ANDROID) |
| 14 extern void InitNonBrowserCrashReporterForAndroid(int minidump_fd); | 14 extern void InitNonBrowserCrashReporterForAndroid(); |
| 15 #endif | 15 #endif |
| 16 bool IsCrashReporterEnabled(); | 16 bool IsCrashReporterEnabled(); |
| 17 | 17 |
| 18 static const size_t kMaxActiveURLSize = 1024; | 18 static const size_t kMaxActiveURLSize = 1024; |
| 19 static const size_t kGuidSize = 32; // 128 bits = 32 chars in hex. | 19 static const size_t kGuidSize = 32; // 128 bits = 32 chars in hex. |
| 20 static const size_t kDistroSize = 128; | 20 static const size_t kDistroSize = 128; |
| 21 #if defined(ADDRESS_SANITIZER) | 21 #if defined(ADDRESS_SANITIZER) |
| 22 static const size_t kMaxAsanReportSize = 1 << 16; | 22 static const size_t kMaxAsanReportSize = 1 << 16; |
| 23 #endif | 23 #endif |
| 24 // Define a preferred limit on minidump sizes, because Crash Server currently | 24 // Define a preferred limit on minidump sizes, because Crash Server currently |
| (...skipping 22 matching lines...) Expand all Loading... |
| 47 unsigned distro_length; // Length of |distro|. | 47 unsigned distro_length; // Length of |distro|. |
| 48 bool upload; // Whether to upload or save crash dump. | 48 bool upload; // Whether to upload or save crash dump. |
| 49 uint64_t process_start_time; // Uptime of the crashing process. | 49 uint64_t process_start_time; // Uptime of the crashing process. |
| 50 size_t oom_size; // Amount of memory requested if OOM. | 50 size_t oom_size; // Amount of memory requested if OOM. |
| 51 uint64_t pid; // PID where applicable. | 51 uint64_t pid; // PID where applicable. |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 extern void HandleCrashDump(const BreakpadInfo& info); | 54 extern void HandleCrashDump(const BreakpadInfo& info); |
| 55 | 55 |
| 56 #endif // CHROME_APP_BREAKPAD_LINUX_H_ | 56 #endif // CHROME_APP_BREAKPAD_LINUX_H_ |
| OLD | NEW |