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

Unified Diff: components/crash/app/breakpad_linux_impl.h

Issue 1315303004: Turn components/crash into a layered component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/crash/app/breakpad_linux.cc ('k') | components/crash/app/breakpad_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/app/breakpad_linux_impl.h
diff --git a/components/crash/app/breakpad_linux_impl.h b/components/crash/app/breakpad_linux_impl.h
deleted file mode 100644
index b306e52ffd09887602909d49a932e8441439a520..0000000000000000000000000000000000000000
--- a/components/crash/app/breakpad_linux_impl.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Internal header file for the Linux breakpad implementation. This file is
-// shared between crash_handler_host_linux.cc and breakpad_linux.cc. It should
-// only be used in files compiled with linux_breakpad=1.
-
-#ifndef COMPONENTS_CRASH_APP_BREAKPAD_LINUX_IMPL_H_
-#define COMPONENTS_CRASH_APP_BREAKPAD_LINUX_IMPL_H_
-
-#include <sys/types.h>
-
-#include "base/basictypes.h"
-#include "breakpad/src/common/simple_string_dictionary.h"
-#include "components/crash/app/breakpad_linux.h"
-
-namespace breakpad {
-
-typedef google_breakpad::NonAllocatingMap<256, 256, 64> CrashKeyStorage;
-
-#if defined(ADDRESS_SANITIZER)
-static const size_t kMaxAsanReportSize = 1 << 16;
-#endif
-// Define a preferred limit on minidump sizes, because Crash Server currently
-// throws away any larger than 1.2MB (1.2 * 1024 * 1024). A value of -1 means
-// no limit.
-static const off_t kMaxMinidumpFileSize = 1258291;
-
-// The size of the iovec used to transfer crash data from a child back to the
-// browser.
-#if !defined(ADDRESS_SANITIZER)
-const size_t kCrashIovSize = 6;
-#else
-// Additional field to pass the AddressSanitizer log to the crash handler.
-const size_t kCrashIovSize = 7;
-#endif
-
-// BreakpadInfo describes a crash report.
-// The minidump information can either be contained in a file descriptor (fd) or
-// in a file (whose path is in filename).
-struct BreakpadInfo {
- int fd; // File descriptor to the Breakpad dump data.
- const char* filename; // Path to the Breakpad dump data.
-#if defined(ADDRESS_SANITIZER)
- const char* log_filename; // Path to the ASan log file.
- const char* asan_report_str; // ASan report.
- unsigned asan_report_length; // Length of |asan_report_length|.
-#endif
- const char* process_type; // Process type, e.g. "renderer".
- unsigned process_type_length; // Length of |process_type|.
- const char* distro; // Linux distro string.
- unsigned distro_length; // Length of |distro|.
- bool upload; // Whether to upload or save crash dump.
- uint64_t process_start_time; // Uptime of the crashing process.
- size_t oom_size; // Amount of memory requested if OOM.
- uint64_t pid; // PID where applicable.
- CrashKeyStorage* crash_keys;
-};
-
-extern void HandleCrashDump(const BreakpadInfo& info);
-
-} // namespace breakpad
-
-#endif // COMPONENTS_CRASH_APP_BREAKPAD_LINUX_IMPL_H_
« no previous file with comments | « components/crash/app/breakpad_linux.cc ('k') | components/crash/app/breakpad_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698