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

Side by Side Diff: components/breakpad/app/breakpad_linux_impl.h

Issue 31243002: Move Linux/Android breakpad implementation to breakpad component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « components/breakpad/app/breakpad_linux.cc ('k') | components/breakpad/app/breakpad_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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 CHROME_APP_BREAKPAD_LINUX_IMPL_H_ 9 #ifndef COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_IMPL_H_
10 #define CHROME_APP_BREAKPAD_LINUX_IMPL_H_ 10 #define COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_IMPL_H_
11 11
Robert Sesek 2013/10/21 15:08:15 #if !defined(BREAKPAD_IMPLEMENTATION) #error This
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 "chrome/app/breakpad_linux.h" 16 #include "components/breakpad/app/breakpad_linux.h"
17
18 namespace breakpad {
17 19
18 typedef google_breakpad::NonAllocatingMap<256, 256, 64> CrashKeyStorage; 20 typedef google_breakpad::NonAllocatingMap<256, 256, 64> CrashKeyStorage;
19 21
20 static const size_t kDistroSize = 128; 22 static const size_t kDistroSize = 128;
21 #if defined(ADDRESS_SANITIZER) 23 #if defined(ADDRESS_SANITIZER)
22 static const size_t kMaxAsanReportSize = 1 << 16; 24 static const size_t kMaxAsanReportSize = 1 << 16;
23 #endif 25 #endif
24 // Define a preferred limit on minidump sizes, because Crash Server currently 26 // Define a preferred limit on minidump sizes, because Crash Server currently
25 // throws away any larger than 1.2MB (1.2 * 1024 * 1024). A value of -1 means 27 // throws away any larger than 1.2MB (1.2 * 1024 * 1024). A value of -1 means
26 // no limit. 28 // no limit.
(...skipping 25 matching lines...) Expand all
52 unsigned distro_length; // Length of |distro|. 54 unsigned distro_length; // Length of |distro|.
53 bool upload; // Whether to upload or save crash dump. 55 bool upload; // Whether to upload or save crash dump.
54 uint64_t process_start_time; // Uptime of the crashing process. 56 uint64_t process_start_time; // Uptime of the crashing process.
55 size_t oom_size; // Amount of memory requested if OOM. 57 size_t oom_size; // Amount of memory requested if OOM.
56 uint64_t pid; // PID where applicable. 58 uint64_t pid; // PID where applicable.
57 CrashKeyStorage* crash_keys; 59 CrashKeyStorage* crash_keys;
58 }; 60 };
59 61
60 extern void HandleCrashDump(const BreakpadInfo& info); 62 extern void HandleCrashDump(const BreakpadInfo& info);
61 63
62 #endif // CHROME_APP_BREAKPAD_LINUX_IMPL_H_ 64 } // namespace breakpad
65
66 #endif // COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_IMPL_H_
OLDNEW
« no previous file with comments | « components/breakpad/app/breakpad_linux.cc ('k') | components/breakpad/app/breakpad_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698