| 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 // Internal header file for the Linux breakpad implementation. This file is | 5 // Internal header file for the Linux breakpad implementation. This file is |
| 6 // shared between crash_handler_host_linux.cc and breakpad_linux.cc. It should | 6 // shared between crash_handler_host_linux.cc and breakpad_linux.cc. It should |
| 7 // only be used in files compiled with linux_breakpad=1. | 7 // only be used in files compiled with linux_breakpad=1. |
| 8 | 8 |
| 9 #ifndef COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_IMPL_H_ | 9 #ifndef COMPONENTS_CRASH_APP_BREAKPAD_LINUX_IMPL_H_ |
| 10 #define COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_IMPL_H_ | 10 #define COMPONENTS_CRASH_APP_BREAKPAD_LINUX_IMPL_H_ |
| 11 | 11 |
| 12 #include <sys/types.h> | 12 #include <sys/types.h> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "breakpad/src/common/simple_string_dictionary.h" | 15 #include "breakpad/src/common/simple_string_dictionary.h" |
| 16 #include "components/breakpad/app/breakpad_linux.h" | 16 #include "components/crash/app/breakpad_linux.h" |
| 17 | 17 |
| 18 namespace breakpad { | 18 namespace breakpad { |
| 19 | 19 |
| 20 typedef google_breakpad::NonAllocatingMap<256, 256, 64> CrashKeyStorage; | 20 typedef google_breakpad::NonAllocatingMap<256, 256, 64> CrashKeyStorage; |
| 21 | 21 |
| 22 #if defined(ADDRESS_SANITIZER) | 22 #if defined(ADDRESS_SANITIZER) |
| 23 static const size_t kMaxAsanReportSize = 1 << 16; | 23 static const size_t kMaxAsanReportSize = 1 << 16; |
| 24 #endif | 24 #endif |
| 25 // Define a preferred limit on minidump sizes, because Crash Server currently | 25 // Define a preferred limit on minidump sizes, because Crash Server currently |
| 26 // throws away any larger than 1.2MB (1.2 * 1024 * 1024). A value of -1 means | 26 // throws away any larger than 1.2MB (1.2 * 1024 * 1024). A value of -1 means |
| (...skipping 28 matching lines...) Expand all Loading... |
| 55 uint64_t process_start_time; // Uptime of the crashing process. | 55 uint64_t process_start_time; // Uptime of the crashing process. |
| 56 size_t oom_size; // Amount of memory requested if OOM. | 56 size_t oom_size; // Amount of memory requested if OOM. |
| 57 uint64_t pid; // PID where applicable. | 57 uint64_t pid; // PID where applicable. |
| 58 CrashKeyStorage* crash_keys; | 58 CrashKeyStorage* crash_keys; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 extern void HandleCrashDump(const BreakpadInfo& info); | 61 extern void HandleCrashDump(const BreakpadInfo& info); |
| 62 | 62 |
| 63 } // namespace breakpad | 63 } // namespace breakpad |
| 64 | 64 |
| 65 #endif // COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_IMPL_H_ | 65 #endif // COMPONENTS_CRASH_APP_BREAKPAD_LINUX_IMPL_H_ |
| OLD | NEW |