| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <stdlib.h> | 8 #include <stdlib.h> |
| 9 | 9 |
| 10 extern void InitCrashReporter(); | 10 extern void InitCrashReporter(); |
| 11 bool IsCrashReporterEnabled(); |
| 11 | 12 |
| 12 static const size_t kMaxActiveURLSize = 1024; | 13 static const size_t kMaxActiveURLSize = 1024; |
| 13 static const size_t kGuidSize = 32; // 128 bits = 32 chars in hex. | 14 static const size_t kGuidSize = 32; // 128 bits = 32 chars in hex. |
| 14 static const size_t kDistroSize = 128; | 15 static const size_t kDistroSize = 128; |
| 15 | 16 |
| 16 struct BreakpadInfo { | 17 struct BreakpadInfo { |
| 17 const char* filename; | 18 const char* filename; |
| 18 const char* process_type; | 19 const char* process_type; |
| 19 unsigned process_type_length; | 20 unsigned process_type_length; |
| 20 const char* crash_url; | 21 const char* crash_url; |
| 21 unsigned crash_url_length; | 22 unsigned crash_url_length; |
| 22 const char* guid; | 23 const char* guid; |
| 23 unsigned guid_length; | 24 unsigned guid_length; |
| 24 const char* distro; | 25 const char* distro; |
| 25 unsigned distro_length; | 26 unsigned distro_length; |
| 26 const char* plugin_list; | 27 const char* plugin_list; |
| 27 unsigned plugin_list_length; | 28 unsigned plugin_list_length; |
| 28 bool upload; | 29 bool upload; |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 extern int HandleCrashDump(const BreakpadInfo& info); | 32 extern int HandleCrashDump(const BreakpadInfo& info); |
| 32 | 33 |
| 33 #endif // CHROME_APP_BREAKPAD_LINUX_H_ | 34 #endif // CHROME_APP_BREAKPAD_LINUX_H_ |
| OLD | NEW |