| 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 extern void InitCrashReporter(); | 8 extern void InitCrashReporter(); |
| 9 | 9 |
| 10 #if defined(GOOGLE_CHROME_BUILD) | 10 #if defined(GOOGLE_CHROME_BUILD) |
| 11 static const unsigned kMaxActiveURLSize = 1024; | 11 static const unsigned kMaxActiveURLSize = 1024; |
| 12 static const unsigned kGuidSize = 32; // 128 bits = 32 chars in hex. | 12 static const unsigned kGuidSize = 32; // 128 bits = 32 chars in hex. |
| 13 static const unsigned kDistroSize = 128; |
| 13 | 14 |
| 14 extern int UploadCrashDump(const char* filename, | 15 struct BreakpadInfo { |
| 15 const char* process_type, | 16 const char* filename; |
| 16 unsigned process_type_length, | 17 const char* process_type; |
| 17 const char* crash_url, | 18 unsigned process_type_length; |
| 18 unsigned crash_url_length, | 19 const char* crash_url; |
| 19 const char* guid, | 20 unsigned crash_url_length; |
| 20 unsigned guid_length); | 21 const char* guid; |
| 22 unsigned guid_length; |
| 23 const char* distro; |
| 24 unsigned distro_length; |
| 25 }; |
| 26 |
| 27 extern int UploadCrashDump(const BreakpadInfo& info); |
| 21 #endif // defined(GOOGLE_CHROME_BUILD) | 28 #endif // defined(GOOGLE_CHROME_BUILD) |
| 22 | 29 |
| 23 #endif // CHROME_APP_BREAKPAD_LINUX_H_ | 30 #endif // CHROME_APP_BREAKPAD_LINUX_H_ |
| OLD | NEW |