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

Side by Side Diff: chrome/app/breakpad_linux.h

Issue 9838033: Upstream native crash handling changes for Android. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Revert of Revert with fixes. Created 8 years, 8 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 | « chrome/app/DEPS ('k') | chrome/app/breakpad_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_APP_BREAKPAD_LINUX_H_
6 #define CHROME_APP_BREAKPAD_LINUX_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10
11 extern void InitCrashReporter();
12 bool IsCrashReporterEnabled();
13
14 static const size_t kMaxActiveURLSize = 1024;
15 static const size_t kGuidSize = 32; // 128 bits = 32 chars in hex.
16 static const size_t kDistroSize = 128;
17
18 struct BreakpadInfo {
19 const char* filename; // Path to the Breakpad dump data.
20 const char* process_type; // Process type, e.g. "renderer".
21 unsigned process_type_length; // Length of |process_type|.
22 const char* crash_url; // Active URL in the crashing process.
23 unsigned crash_url_length; // Length of |crash_url|.
24 const char* guid; // Client ID.
25 unsigned guid_length; // Length of |guid|.
26 const char* distro; // Linux distro string.
27 unsigned distro_length; // Length of |distro|.
28 bool upload; // Whether to upload or save crash dump.
29 uint64_t process_start_time; // Uptime of the crashing process.
30 size_t oom_size; // Amount of memory requested if OOM.
31 };
32
33 extern void HandleCrashDump(const BreakpadInfo& info);
34
35 #endif // CHROME_APP_BREAKPAD_LINUX_H_
OLDNEW
« no previous file with comments | « chrome/app/DEPS ('k') | chrome/app/breakpad_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698